Props
interface TextProps extends AriaProps, AllStylesProps
as | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "li" | "em" | "strong" | "kbd" | "mark" | "q" | "s" | "samp" | "small" | "sub" | "sup" | "time" | "var" | "blockquote" The element that is rendered. Defaults to |
children | React.ReactNode | string The contents of the text. |
className | undefined | string Additional class names to apply, separated by spaces. |
dataAttributes | DataAttributesProp Data attributes that are spread onto the element, e.g. |
id | undefined | string The |
role | undefined | string The |
size | TextSizeProp The size of the text. Defaults to |
style | React.CSSProperties Additional styles. |
variant | TextVariant The variant of the text. Defaults to |