Legacy AI Heading
Overview
Install
yarn add @camp/legacy-ai-headingProps
| Prop | Type | Default | Description |
|---|---|---|---|
appearance | "small" | "medium" | "large" | "xLarge" | — | This property will configure the heading copy's font style grouping to either increase or decrease in scale. |
as | StyledElement | — | |
children | ReactNode | — | Alter the text content. |
className | string | — | |
color | string | string[] | — | Sets the color CSS property. |
dangerouslySetStyles | StyledCSS | — | |
family | string | string[] | — | Sets the font-family CSS property. |
height | string | string[] | — | Sets the line-height CSS property. |
m | SpacingValues | — | |
mb | SpacingValues | — | |
ml | SpacingValues | — | |
mr | SpacingValues | — | |
mt | SpacingValues | — | |
mx | SpacingValues | — | |
my | SpacingValues | — | |
p | SpacingValues | — | |
pb | SpacingValues | — | |
pl | SpacingValues | — | |
placement | "before" | "after" | — | |
pr | SpacingValues | — | |
pt | SpacingValues | — | |
px | SpacingValues | — | |
py | SpacingValues | — | |
size | string | string[] | — | Sets the font-size CSS property. |
styles | StyledCSS | — | |
themed | boolean | — | When true, adapts to theme context; when false, uses light theme. The wrapped v1 heading is light-only, so this currently only forwards theme context. |
weight | string | string[] | — | Sets the font-weight CSS property. |
Generated from @camp/legacy-ai-heading@1.5.0 source, ordered by production usage. * required.