Skip to main content

Text

Body text component with size and weight options.

Import

import { Text } from '@kikumi3n/ui';

Usage

<Text>Default body text</Text>
<Text as="span" size="var(--font-size-sm)">Small text</Text>
<Text as="p" size="var(--font-size-lg)">Large text</Text>

API

PropTypeDefaultDescription
as`'p''span''div'
sizestringFont size (CSS value or token)
weightstringFont weight
colorstringText color