//
A polymorphic typography component.
bun add xiod-ui1import { Text } from "xiod-ui/text";1<Text>2</Text>| Prop | Type | Default | Description |
|---|---|---|---|
render | ReactElement<unknown, string| JSXElementConstructor<any>>| ComponentRenderFn<HTMLProps, {}>| undefined | - | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render. |
size | "default"| "none"| "sm"| "lg"| "xs"| "xl"| null| undefined | default | |
variant | "body"| "secondary"| "success"| "warning"| "info"| "error"| "heading1"| "heading2"| "heading3"| "heading4"| "mono"| "mono-secondary"| null| undefined | body | |
weight | "bold"| "normal"| "medium"| "semibold"| null| undefined | - | |
truncate | boolean| null| undefined | - |