Text

Body text in three sizes, muted or not, with an optional line length.

Example

The page is built on the server.The browser only draws it.Nothing in between holds application code.
tsx
<Stack gap="sm">
  <Text size="lg">The page is built on the server.</Text>
  <Text>The browser only draws it.</Text>
  <Text variant="muted" size="sm">
    Nothing in between holds application code.
  </Text>
</Stack>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Text, Stack } from "@dash/server";

Props

TextProps

Prop
Type
Description
size"sm" | "base" | "lg"
measure"narrow" | "normal" | "wide"
variant"default" | "muted" | "small" | "large"
PreviousHeading
NextCode
On this page