Content primitives

Text

Applies the body or small text scale to semantic text.

tsx
import Text from '@precursor/text';

Example

Type gives an interface rhythm.

Secondary copy uses the small scale.

tsx
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

Text props
PropTypeDefaultNotes
childrenRequiredReact.ReactNode——
asModifier'p'—
size"small" | "body"——