Docs
πŸ—οΈ ⏐ Components
Layout
Block

Block

Simple block component.

Examples

Blocks

This component is used in the following Blocks:

Theme

This component uses the following default theme:

  • root{}(7 keys)
      Show all

Learn more about how to customize in the Theme documentation.

API

PropDescriptionDefault
labelLabel to display on the block.
ReactNode
disableMarginDisable block bottom margin.
boolean
requiredWhether to show the required * or not.
boolean
childrenChildren to render.
ReactNode
labelClassNameAdditional classname to apply to the label.
string
classNameAdditional classname to apply to the block.
string
directionDirection of the block.
"vertical" | "horizontal"
vertical
alignmentAlignment of the label.
"start" | "center" | "end"
start
onTitleClickEvent when the label is clicked.
(event: MouseEvent<HTMLLabelElement, MouseEvent>) => void
themeTheme for the Block.
BlockTheme