import Text from '@precursor/text';Example
Type gives an interface rhythm.
Secondary copy uses the small scale.
import Text from '@precursor/text';
export default function Example() {
return (
<>
<Text>Type gives an interface rhythm.</Text>
<Text size="small">Secondary copy uses the small scale.</Text>
</>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | React.ReactNode | — | — |
as | Modifier | 'p' | — |
size | "small" | "body" | — | — |