Skip to content

Files

Latest commit

f467e1d · Jun 18, 2024

History

History

post-excerpt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 18, 2024
Jan 18, 2023

Post Excerpt

The PostExcerpt 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 excerpt of the current post.

Usage

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

function BlockEdit() {

    return (
        <PostExcerpt className="wp-block-example-hero__excerpt" />
    )
}

Props

Name Type Default Description
placeholder string Enter excerpt...
...rest object {}