Usage
Size
There are five font sizes available, medium is the default.
Weight
There are five font weights available, regular is the default.
Color
You may apply alternative theme colors to the text, base is the default.
Leading
Tighten or loosen the leading of your content. This translates to line-height in CSS.
Inline
Render the Text as an "inline" element.
Overflow strategy
Use the overflowStrategy prop to manage how Text behaves with regard to overflow.
NextLink
For client side routing with Next, use as={NextLink}.
import { NextLink } from '@balance-web/next-link';import { TextLink } from '@balance-web/text';<TextLink as={NextLink} href="/"> A link</TextLink>;