Skip to content

Text

Component to render text.

Example

Hello world

import { UiText } from '@altdot/extension';
export default function Command() {
return (
<UiText>Hello world</UiText>
);
}

Props

NameTypeDescription
variant'code' | 'body-small' | 'body' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4'The text’s variant. Default to body
color'primary' | 'default' | 'destructive' | 'muted'The button’s color. Default to default