No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Text

A primitive text component matching Orbit typography type scale.

usage
import { Text } from "@sharegate/orbit-ui";
sources
Github

Usage

Use this component if more specific Orbit typographic components like span or paragraph doesn't meet your needs.

Size

You can alter the size of the text by specifying a size prop. The available sizes match Orbit typography type scale (a type scale is a set of font-size and line-height pairs).

If two pieces of the same type of metal touch in space they will permanently bond.If two pieces of the same type of metal touch in space they will permanently bond.
Editable example

API

usage
import { Text } from "@sharegate/orbit-ui";
NameDescriptionDefault
size
A text can vary in size.
"xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl" | "5xl" | ResponsiveValue<"xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl" | "5xl">
-
slot
Slot to render into.
string
-