Text
▸ Text(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
NOTE: Exotic components are not callable.
Parameters
Name | Type | Description |
---|---|---|
props | Object | - |
props.as? | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "p" | "span" | - |
props.variant? | "body" | "action" | "emphasis" | "caption1" | "caption2" | "display1" | "display2" | "display3" | "display4" | Text variant Default tsx copy showLineNumbers filename="example.tsx" 'body' |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355