Block

Props #

id
The unique identifier for the block.
Type: string

children
The content to be rendered inside the block.
Type: ReactNode

background optional
The background color of the block. Must be a key from BACKGROUND_COLORS.
Type: string | number | symbol

color optional
The text color of the block. Must be a key from COLORS.
Type: string | number | symbol

align optional
The alignment of the block's content. Can be 'left', 'center', or 'right'.
Type: left | center | right

theme optional
The theme of the block. Can be 'light' or 'dark'.
Type: light | dark

heading optional
The properties for the block header.
Type: BlockHeaderProps

size optional
The size of the block. Can be 'small' or 'full'.
Type: small | full

gutterBottom optional
Whether to add bottom padding to the block.
Type: boolean

editor optional
An object representing editor-specific properties.
Type: { [key: string]: string; }