AsterUIDocsv1.0.2

Docs / Component reference

Prose & Text

Use one typographic scale for headings, paragraphs, lists and quotations in a long passage.

Prose example

Install

sh
npx @fierst/ui@1.0.2 add prose

Registry dependencies: theme.

Exports from ./ui/prose: Prose, Text.

Download the registry source for prose 1.0.2.

API contracts

ts
export function Prose(props: { class?: string; children?: View })

export function Text({
  size = 'sm',
  tone = 'default',
  weight,
  class: extraClass,
  children,
}: {
  size?: 'xs' | 'sm' | 'md' | 'lg';
  tone?: 'default' | 'muted' | 'subtle' | 'primary' | 'danger';
  weight?: 400 | 500 | 600 | 700;
  class?: string;
  children?: View;
})