name | menu | route |
---|---|---|
Caption |
Design System |
/core/caption |
Caption is a Span tag with predefined styles. No option available except of color
By default Caption color is bulma.100. You can use any color.
Bulma.100 - is main text color. Trunks.100 - is secondary text color
<Stack>
<Caption>Caption with default color</Caption>
<Caption color="trunks.100">Caption with defined color</Caption>
<Caption color="piccolo.100">Caption with defined color</Caption>
<Caption color="krillin.100">Caption with defined color</Caption>
</Stack>
By default Caption renders as Span tag. You can render it as Paragraph or Label tags, etc.
<Stack>
<Caption>Caption renders Span tag by default</Caption>
<Caption as="p">Caption renders Paragraph tag</Caption>
<Caption as="label">Caption renders Label tag</Caption>
</Stack>