Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 885 Bytes

File metadata and controls

25 lines (17 loc) · 885 Bytes

Post Title

The PostTitle component is part of the suite of components that read/write data from the global post object or the current <PostContext />. It has a composable declarative approach to allow you full control over the markup without needing to worry about the data handling at all.

The Component allows you to showcase the title of the current post.

Usage

import { PostTitle } from '@10up/block-components';

function BlockEdit() {

    return (
        <PostTitle tagName="h2" className="wp-block-example-hero__title" />
    )
}

Props

Name Type Default Description
tagName string h1
...rest object {}