`. - With a label: a `
` whose line segments are hidden and whose label is plain, readable text. A `separator`'s children are presentational in ARIA, so putting the label inside one risks it not being announced; reading it as text in document order is the most reliable. - `decorative`: `aria-hidden="true"`, no role; hidden from assistive tech.
- `orientation` (`Orientation`): Direction of the line. Vertical dividers stretch to the height of a flex row.
- `variant` (`DividerVariant`): Line style.
- `thickness` (`DividerThickness`): Line thickness.
- `tone` (`DividerTone`): Line color. `neutral` is the standard hairline; `strong` is a darker neutral; other tones use `--color-{tone}-border`.
- `spacing` (`Space`): Space around the line on the cross axis (block margin when horizontal, inline margin when vertical), as a `--space-*` step.
- `inset` (`DividerInset`): Shorten the line from its start, end, or both ends.
- `label` (`ReactNode`): Inline label shown in the line (e.g. "or", "Second half"). Rendered as readable text, not inside an `
`. `children` works the same way; `label` wins when both are set.
- `children` (`ReactNode`): Label content, as an alternative to `label`.
- `labelPosition` (`DividerLabelPosition`): Where the label sits along the line. Ignored without a label.
- `decorative` (`boolean`): Purely visual line. Hides the whole divider (including any label) from assistive technology with `aria-hidden="true"` and no separator role.
- `ref` (`Ref
`): Ref to the root element (`
` for a plain horizontal divider, otherwise a ``).
### Flex
Docs: https://vjdesigns-ui.org/docs/components/flex
#### Flex
Full flexbox container: direction (fixed or responsive), wrapping, alignment on both axes, line distribution, and token-based gaps. Use `Stack` for the common case of evenly spaced children in one direction. Reach for `Flex` when you need real flexbox control: `justify="between"` toolbars, wrapping chip rows, reversing order, direction that flips at a breakpoint, or per-child sizing via `Flex.Item`. Purely presentational: it adds no role or keyboard behavior. Pick a semantic element with `as` (`ul`, `nav`, `header`, ...) when the group has meaning. Reverse directions change only the visual order, not the reading or tab order, so keep DOM order meaningful (WCAG 1.3.2, 2.4.3).
- `as` (`ElementType`): Element or component to render as. Native props follow the chosen element. Defaults to `div`.
- `direction` (`FlexResponsive
`): Main axis (`flex-direction`). Pass an object to change it at breakpoints, e.g. `{ base: "column", md: "row" }`. Defaults to the browser default, `row`.
- `wrap` (`FlexResponsive`): Whether items wrap onto new lines (`flex-wrap`). Responsive. Defaults to `nowrap`: use `wrap` (or a responsive `direction`) for rows that must reflow at 320px (SC 1.4.10).
- `align` (`FlexResponsive`): Cross-axis alignment of items (`align-items`). Responsive. Defaults to `stretch`.
- `justify` (`FlexResponsive`): Main-axis distribution of items (`justify-content`). Responsive. Defaults to `start`.
- `alignContent` (`FlexResponsive`): Distribution of wrapped lines (`align-content`). Responsive. Only matters with `wrap`.
- `gap` (`FlexResponsive`): Gap between items on both axes, as a `--space-*` step. Responsive.
- `rowGap` (`FlexResponsive`): Gap between rows (lines), as a `--space-*` step. Overrides `gap` on that axis. Responsive.
- `columnGap` (`FlexResponsive`): Gap between columns (items in a row), as a `--space-*` step. Overrides `gap` on that axis. Responsive.
- `inline` (`boolean`): Render as `inline-flex` instead of `flex`.
- `fullWidth` (`boolean`): Stretch to the full width of the container.
- `children` (`ReactNode`): Flex items.
#### Flex.Item
A child of `Flex` with its own sizing (`grow`, `shrink`, `basis`), `order`, and `alignSelf`. Only the properties you pass are applied, so an item with no props behaves like a plain child. Also available as `Flex.Item`.
- `as` (`ElementType`): Element or component to render as. Native props follow the chosen element. Defaults to `div`.
- `grow` (`boolean | number`): Share of free space to take (`flex-grow`). `true` means `1`.
- `shrink` (`boolean | number`): Share of overflow to give up (`flex-shrink`). `false` means `0` (never shrink).
- `basis` (`string | number`): Starting size before growing or shrinking (`flex-basis`), e.g. `"240px"`, `"30%"`, `"auto"`. Numbers are pixels.
- `order` (`number`): Visual order (`order`). Changes only the visual order, not reading or tab order.
- `alignSelf` (`FlexAlignSelf`): Cross-axis alignment for this item only (`align-self`), overriding the container's `align`.
- `children` (`ReactNode`): Item content.
### Grid
Docs: https://vjdesigns-ui.org/docs/components/grid
#### Grid
A CSS grid container. Use `columns` for a fixed or breakpoint-driven column count, or `minItemWidth` for an intrinsic grid that fits as many columns as the container allows. Place children with `Grid.Item`. **Accessibility:** Grid is purely presentational and adds no role. The reading and focus order is always the DOM order, so keep the source order meaningful. Visual reordering with `flow="dense"` or explicit placement on `Grid.Item` must not make the visual order contradict the reading or focus order (WCAG 1.3.2, 2.4.3). When rendering a list (`as="ul"`) and removing bullets, add `role="list"` so Safari/VoiceOver keeps list semantics.
- `columns` (`Responsive`): Column tracks. A number makes that many equal columns (`repeat(n, minmax(0, 1fr))`); a string is used as a raw `grid-template-columns` value (e.g. `"16rem 1fr"`). Accepts a responsive object: `{ base: 1, md: 2, lg: 4 }`. Ignored when `minItemWidth` is set. A fixed number never collapses, so for content that must reflow at 320px (SC 1.4.10) start at `base: 1` or use `minItemWidth`.
- `minItemWidth` (`string`): Builds a responsive grid without media queries: as many columns as fit, each at least this wide (any CSS length, e.g. `"14rem"`). Never wider than the container, so it reflows to one column on narrow screens (WCAG 1.4.10). Takes precedence over `columns`.
- `rows` (`Responsive`): Row tracks. A number makes that many equal rows; a string is a raw `grid-template-rows` value. Responsive.
- `autoRows` (`string`): Size of implicitly created rows (`grid-auto-rows`), e.g. `"8rem"` or `"minmax(8rem, auto)"`.
- `gap` (`Responsive`): Space between rows and columns. Maps to `--space-*`. Responsive.
- `rowGap` (`Responsive`): Space between rows. Overrides `gap` for rows. Responsive.
- `columnGap` (`Responsive`): Space between columns. Overrides `gap` for columns. Responsive.
- `align` (`GridAlign`): Block-axis alignment of items within their cells (`align-items`).
- `justify` (`GridJustify`): Inline-axis alignment of items within their cells (`justify-items`).
- `flow` (`GridFlow`): Auto-placement direction (`grid-auto-flow`). **Accessibility:** `dense` back-fills holes, so items can appear visually out of source order. Screen readers and keyboard focus follow the DOM order, so only use dense packing when order carries no meaning (WCAG 1.3.2 Meaningful Sequence, 2.4.3 Focus Order).
- `inline` (`boolean`): Render as `inline-grid` instead of `grid`.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged after the grid's custom properties.
- `children` (`ReactNode`)
- `as` (`ElementType`): Element or component to render as. Native props are typed for it.
#### Grid.Item
A child of `Grid` with span and placement controls. Any element can be a grid child; use `Grid.Item` only when you need spans or placement. **Accessibility:** explicit placement (`colStart`, `rowStart`, ...) moves items visually without changing the DOM order that screen readers and the Tab key follow. Keep the visual order consistent with the source order (WCAG 1.3.2 Meaningful Sequence, 2.4.3 Focus Order).
- `colSpan` (`Responsive`): Number of columns to span, or `"full"` to stretch across every column (`1 / -1`). Responsive: `{ base: "full", md: 2 }`.
- `rowSpan` (`Responsive`): Number of rows to span. Responsive.
- `colStart` (`GridLine`): Column line to start at. See the accessibility note on `Grid.Item` about explicit placement.
- `colEnd` (`GridLine`): Column line to end at.
- `rowStart` (`GridLine`): Row line to start at.
- `rowEnd` (`GridLine`): Row line to end at.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged after the item's custom properties.
- `children` (`ReactNode`)
- `as` (`ElementType`): Element or component to render as. Native props are typed for it.
### Icon
Docs: https://vjdesigns-ui.org/docs/components/icon
#### Icon
Inline SVG icon. Render a built-in icon with `name`, or pass your own SVG content as `children`. Decorative by default (hidden from assistive technology); pass `label` when the icon conveys meaning on its own.
- `name` (`IconName`): Built-in icon to render. Takes precedence over `children`.
- `children` (`ReactNode`): Custom SVG content on a 24x24 grid (pass `viewBox` to change the grid). Used when `name` is not set.
- `size` (`IconSize`): Size: `xs` 12px, `sm` 16px, `md` 20px, `lg` 24px, `xl` 32px, `2xl` 48px, or a number of pixels.
- `tone` (`IconTone`): Color. Defaults to `inherit` (`currentColor`).
- `strokeWidth` (`number`): Stroke width on the 24x24 grid. Applies to stroke-based icons.
- `label` (`string`): Accessible name. When set, the icon is meaningful (`role="img"` plus `aria-label`). When omitted, the icon is decorative and hidden from assistive technology (`aria-hidden="true"`, `focusable="false"`).
- `spin` (`boolean`): Rotates the icon continuously (for `loader`). Stops under reduced motion.
#### AccessibilityIcon
Icons for accessibility features and services: wheelchair access, audio description and transcripts, hearing loops, sign language, display settings, and alternative input. (Captions are `Icon name="captions"`.) Same props as `Icon`, plus `labeled`, which turns on a built-in accessible name in every bundled language. Decorative by default. Drawn to stricter rules than the main set, all checked on every release: readable at 16px, never mistakable for another icon at that size, inside a safe area, and painted only with `currentColor` so tones, dark mode, and Windows High Contrast recolor them. Icons that show movement (wheelchair, ramp, blind) mirror in right-to-left layouts. Use them at 16px (`sm`) or larger.
- `name` (`AccessibilityIconName`, required): Accessibility icon to render.
- `labeled` (`boolean`): Give the icon its built-in accessible name, translated by `LocaleProvider` (for example "Wheelchair accessible"), so screen readers announce it as an image. `label` wins when both are set. Leave both off when nearby text already says the same thing: the icon is then decorative.
- `size` (`IconSize`): Size: `xs` 12px, `sm` 16px, `md` 20px, `lg` 24px, `xl` 32px, `2xl` 48px, or a number of pixels.
- `tone` (`IconTone`): Color. Defaults to `inherit` (`currentColor`).
- `strokeWidth` (`number`): Stroke width on the 24x24 grid. Applies to stroke-based icons.
- `label` (`string`): Accessible name. When set, the icon is meaningful (`role="img"` plus `aria-label`). When omitted, the icon is decorative and hidden from assistive technology (`aria-hidden="true"`, `focusable="false"`).
- `spin` (`boolean`): Rotates the icon continuously (for `loader`). Stops under reduced motion.
### Kbd
Docs: https://vjdesigns-ui.org/docs/components/kbd
#### Kbd
A single keyboard key, rendered as a native `` styled like a physical key cap. Labels use the display font (`--font-display`) for the brand's bold, athletic look; tabular numerals keep digits aligned.
- `size` (`Size`): Key cap size.
- `variant` (`KbdVariant`): Visual style. `outline` is a light key with a strong edge, `soft` a tinted key, `solid` a dark key.
- `keyName` (`KbdKeyToken | (string & {})`): A platform-aware key token (`"mod"`, `"shift"`, `"enter"`, `"up"`, ...). When set, the key shows the platform symbol and screen readers hear the full name (e.g. "Command" instead of "place of interest sign"). Takes precedence over `children`. Unknown strings render as-is.
- `platform` (`KbdPlatform`): Force a platform instead of detecting it. Only affects `keyName`.
- `children` (`ReactNode`): Key label. Use `keyName` instead for modifier and special keys.
#### KbdShortcut
A key combination or sequence. Follows the HTML spec pattern for key combos: an outer `` wrapping one nested `` per key, with the separator as text between them (read as "plus" or "then").
- `keys` (`Array`, required): Keys in order. Accepts platform tokens (`"mod"`, `"alt"`, `"shift"`, `"enter"`, arrows, ...) or literal labels (`"K"`, `"/"`).
- `separator` (`KbdSeparator`): `"+"` for keys pressed together (default), `"then"` for a sequence pressed one after another.
- `thenLabel` (`string`): Word shown between keys when `separator="then"`. Override to localize.
- `size` (`Size`): Key cap size, applied to every key.
- `variant` (`KbdVariant`): Visual style, applied to every key.
- `platform` (`KbdPlatform`): Force a platform instead of detecting it.
### LocaleProvider
Docs: https://vjdesigns-ui.org/docs/components/locale-provider
#### LocaleProvider
Sets the language of every component inside: built-in labels and screen-reader text, date and number formats, plurals, and writing direction. Wraps its children in an element with `lang` and `dir` (`display: contents`, so layout is unaffected); overlays opened inside keep the language. ```tsx import es from "@vjdesigns/vjdesigns-ui/locales/es"; ``` Providers nest: an inner provider changes the locale for its subtree and merges its `messages` over the outer ones.
- `locale` (`string`, required): BCP 47 language tag, e.g. `"es"`, `"pt-BR"`, `"ar"`. Sets `lang` on the wrapper and the locale for dates, numbers, and plurals in every component.
- `messages` (`PartialMessages`): Built-in strings for the language, e.g. `import es from "@vjdesigns/vjdesigns-ui/locales/es"`. Partial messages are merged over the outer provider's (English at the top), so you can also override just a few strings. Leave unset to keep the outer messages.
- `dir` (`"ltr" | "rtl"`): Writing direction. Defaults to the locale's: `"rtl"` for Arabic, Hebrew, Persian, Urdu, and other right-to-left languages.
- `children` (`ReactNode`)
### Portal
Docs: https://vjdesigns-ui.org/docs/components/portal
#### Portal
Renders children at the end of document.body (or `container`) so overlays escape parent overflow and stacking contexts. On the client, children mount in the same commit as the Portal, so a parent's layout effects already see their refs. During server rendering (and the matching hydration pass) it renders nothing, then mounts. Inside a `Theme` wrapper, the portaled content is wrapped in an element (`display: contents`, so layout is unaffected) carrying the same `data-brand` / `data-accent` / `data-theme` (and a custom brand's generated colors), so overlays keep their area's theme. Inside a `LocaleProvider`, it also carries `lang` and `dir`, so overlays keep their area's language.
- `children` (`ReactNode`, required)
- `container` (`HTMLElement | null`): Element to render into. Defaults to document.body.
- `disabled` (`boolean`): Render inline instead of portaling.
### ResizablePanels
Docs: https://vjdesigns-ui.org/docs/components/resizable-panels
#### ResizablePanels
- `orientation` (`Orientation`, default `"horizontal"`): `horizontal`: panels side by side. `vertical`: panels stacked.
- `layout` (`number[]`): Panel sizes in percent, in order (controlled).
- `defaultLayout` (`number[]`): Starting sizes in percent when uncontrolled. Defaults to each panel's `defaultSize`.
- `onLayoutChange` (`(layout: number[]) => void`): Called with the sizes (in percent) whenever they change. Persist it to remember a layout.
- `keyboardStep` (`number`, default `5`): How much one arrow key press moves a handle, in percent.
- `children` (`ReactNode`): `ResizablePanels.Panel`s with `ResizablePanels.Handle`s between them, as direct children.
#### ResizablePanels.Panel
- `defaultSize` (`number`): Starting size, in percent of the group. Panels without one share what's left equally.
- `minSize` (`number`, default `10`): Smallest size, in percent.
- `maxSize` (`number`, default `100`): Largest size, in percent.
- `collapsible` (`boolean`, default `false`): Can be collapsed: dragging well past `minSize` snaps it to `collapsedSize`, and Enter on the handle after it toggles it.
- `collapsedSize` (`number`, default `0`): Size when collapsed, in percent. At 0 the panel's content is hidden and inert.
- `label` (`string`): Name of the panel, used for the handle after it ("Resize Navigation").
- `children` (`ReactNode`): Panel content. It scrolls inside the panel when it doesn't fit.
#### ResizablePanels.Handle
- `aria-label` (`string`): Accessible name. Defaults to "Resize {label}" from the panel before it, else "Resize panels".
#### ResizablePanel
One panel. Its size comes from the group's layout; constraints are its own props.
- `defaultSize` (`number`): Starting size, in percent of the group. Panels without one share what's left equally.
- `minSize` (`number`, default `10`): Smallest size, in percent.
- `maxSize` (`number`, default `100`): Largest size, in percent.
- `collapsible` (`boolean`, default `false`): Can be collapsed: dragging well past `minSize` snaps it to `collapsedSize`, and Enter on the handle after it toggles it.
- `collapsedSize` (`number`, default `0`): Size when collapsed, in percent. At 0 the panel's content is hidden and inert.
- `label` (`string`): Name of the panel, used for the handle after it ("Resize Navigation").
- `children` (`ReactNode`): Panel content. It scrolls inside the panel when it doesn't fit.
### ScrollArea
Docs: https://vjdesigns-ui.org/docs/components/scroll-area
#### ScrollArea
A scrolling region with slim, on-brand scrollbars that work the same in every browser. Scrolling itself stays native (wheel, touch, trackpad momentum, keyboard, find-in-page, scroll anchoring); only the look of the bars is custom. The thumbs can be dragged, and pressing the track pages toward the press. Accessibility: while the content overflows, the viewport is focusable (`tabIndex=0`) so keyboard users can scroll it with the arrow keys, Page Up / Page Down, and Home / End. Give it a name with `aria-label` or `aria-labelledby`, which also makes it a `region` landmark. The custom bars are hidden from assistive technology (they duplicate native scrolling). Edge shadows show there is more to see. In Windows High Contrast mode the native scrollbars come back. ```tsx …
```
- `children` (`ReactNode`): The scrolling content.
- `type` (`ScrollAreaType`, default `"auto"`): When the scrollbars show.
- `scrollbars` (`ScrollAreaScrollbars`, default `"vertical"`): Which directions scroll.
- `size` (`ScrollAreaSize`, default `"md"`): Scrollbar thickness.
- `maxHeight` (`CSSProperties["maxHeight"]`): Maximum height of the area (any CSS length, or px as a number). Without it, give the area a height.
- `shadows` (`boolean`, default `true`): Fade the edges where more content is hidden, so it's clear the area scrolls even before the scrollbar is noticed.
- `hideDelay` (`number`, default `800`): How long the scrollbars stay after scrolling stops, for `hover` and `scroll`, in ms.
- `viewportRef` (`Ref`): Ref to the scrolling viewport element (to read or set `scrollTop`, or call `scrollTo`). `ref` goes to the outer root.
- `viewportClassName` (`string`): Class name for the viewport.
- `onViewportScroll` (`(event: Event & { currentTarget: HTMLDivElement; }) => void`): Called on every scroll of the viewport.
### Stack
Docs: https://vjdesigns-ui.org/docs/components/stack
#### Stack
One-dimensional flex layout. Lays children out in a column (default) or row with token-based gaps, optional dividers, and an optional responsive switch from row to column.
- `as` (`StackElement`): Element to render. Native props are typed for the chosen element. `ul`/`ol` drop bullets and padding but keep list semantics.
- `direction` (`Responsive`): Main-axis direction. Responsive: `{ base: "column", md: "row" }`. Reverse directions change visual order only; DOM, reading, and focus order stay the same.
- `gap` (`Responsive`): Space between children, as a step on the `--space-*` scale. Responsive.
- `align` (`Responsive`): Cross-axis alignment of children. Responsive.
- `justify` (`Responsive`): Main-axis distribution of children. Responsive.
- `wrap` (`Responsive`): Let children wrap onto multiple lines. Responsive. Rows don't wrap by default: use `wrap`, a responsive `direction`, or `stackBelow` for rows that must reflow at 320px (SC 1.4.10).
- `divider` (`ReactNode`): Inserted between every pair of children. Pass `true` for the built-in token-styled line (see `dividerSemantics`), or any node for a custom divider (you own its semantics). In `ul`/`ol` stacks, dividers are wrapped in an `aria-hidden` `` so the list stays valid and item counts stay correct.
- `dividerSemantics` (`StackDividerSemantics`): Accessibility semantics of the built-in divider. Ignored for custom dividers and in list stacks (always decorative there). A `separator` stays decorative when `stackBelow` is set or `direction` is responsive, since its orientation flips at a breakpoint.
- `fullWidth` (`boolean`): Stretch to the full inline size of the container.
- `stackBelow` (`StackBreakpoint`): Switch a `row`/`row-reverse` stack to a column below this breakpoint. Has no effect on column stacks or with a responsive `direction` (which covers this: `{ base: "column", md: "row" }`).
### Theme
Docs: https://vjdesigns-ui.org/docs/components/theme
#### Theme
Applies a brand palette, accent, and/or color mode to everything inside it, through `data-brand`, `data-accent`, and `data-theme` (and, for hex colors, the generated custom properties inline). Wrap the whole app, or any part of it; themes nest (a blue area inside a purple app, a dark panel on a light page). Overlays opened inside (Popover, Menu, Modal, Tooltip, Toast, ...) render elsewhere in the page but keep this theme. For the whole page you can instead set the attributes on ``: ``.
- `brand` (`ThemeBrand | BrandColor`): Brand palette for everything inside: buttons, links, focus rings, selection, and indicators all switch at once. Leave unset to inherit. A preset name, or any hex color (`"#e11d48"`) for a custom palette generated in both modes. One hex is used as given in the mode where it meets WCAG AA (dark colors in light mode, light colors in dark mode) and the other mode gets a matching shade; pass `{ light, dark }` to choose both. A color that fails contrast is shifted lighter or darker (same hue) just enough to pass, with a console warning in development.
- `accent` (`ThemeAccent | BrandColor`): The accent: the energetic highlight on badges, switches, progress bars, sliders, steppers, and active navigation. Leave unset to inherit; with no accent set anywhere, each brand uses its own (a bright shade of its hue). `"lime"` for the original bright yellow-green, `"brand"` to go back to the brand's own inside an area with another accent, or any hex color for a custom accent. Accents always carry dark text, so a color too dark for that is lightened (same hue), with a console warning in development. An accent set here also holds inside nested brands.
- `mode` (`ThemeMode`): Color mode for everything inside. Leave unset to inherit.
- `fill` (`boolean`, default `false`): Paint the page background and text color of the theme on this wrapper (useful when `mode` differs from the page around it).
### Typography
Docs: https://vjdesigns-ui.org/docs/components/typography
#### Heading
Athletic display heading in `--font-display`: bold, tight, high contrast. `level` sets the semantics; `size` sets the look.
- `level` (`HeadingLevel`): Semantic level; renders `h1`-`h6`. Choose it by document outline, not looks.
- `size` (`TypographySize`): Visual size, independent of `level`. Defaults by level: 1 `4xl`, 2 `3xl`, 3 `2xl`, 4 `xl`, 5 `lg`, 6 `md`.
- `balance` (`boolean`): Balance line lengths (`text-wrap: balance`).
- `weight` (`TypographyWeight`): Font weight.
- `tone` (`TypographyTone`): Text color, from contrast-verified tokens.
- `align` (`TypographyAlign`): Horizontal alignment.
- `caps` (`boolean`): Uppercase with wide `--letter-spacing-caps` tracking.
- `truncate` (`boolean`): Keep to one line and cut off with an ellipsis. The full text stays in the DOM for screen readers; give sighted users a way to see it (e.g. `title`).
- `lineClamp` (`number`): Clamp to this many lines, ending in an ellipsis.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged with the dynamic `lineClamp` style.
- `as` (`HeadingElement`): The element to render.
#### Display
Hero-sized heading: `Heading` with `level={1}`, `size="6xl"`, and `weight="black"` by default. Every `Heading` prop still applies.
- `level` (`HeadingLevel`): Semantic level; renders `h1`-`h6`. Choose it by document outline, not looks.
- `size` (`TypographySize`): Visual size, independent of `level`. Defaults by level: 1 `4xl`, 2 `3xl`, 3 `2xl`, 4 `xl`, 5 `lg`, 6 `md`.
- `balance` (`boolean`): Balance line lengths (`text-wrap: balance`).
- `weight` (`TypographyWeight`): Font weight.
- `tone` (`TypographyTone`): Text color, from contrast-verified tokens.
- `align` (`TypographyAlign`): Horizontal alignment.
- `caps` (`boolean`): Uppercase with wide `--letter-spacing-caps` tracking.
- `truncate` (`boolean`): Keep to one line and cut off with an ellipsis. The full text stays in the DOM for screen readers; give sighted users a way to see it (e.g. `title`).
- `lineClamp` (`number`): Clamp to this many lines, ending in an ellipsis.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged with the dynamic `lineClamp` style.
- `as` (`HeadingElement`): The element to render.
#### Text
Friendly body text in `--font-body`. Renders a `p` by default.
- `size` (`TextSize | "inherit"`): Font size. Block elements default to `md`; inline elements (`span`, `strong`, `em`, `code`, ...) default to `inherit` so they fit their parent.
- `tone` (`TypographyTone`): Text color. Block elements default to `default`; inline elements default to `inherit`.
- `leading` (`TypographyLeading`): Line height. Defaults to `normal` on block elements; inherited otherwise.
- `italic` (`boolean`): Italic style.
- `mono` (`boolean`): Use the monospace font (`--font-mono`).
- `wrap` (`TypographyWrap`): Line wrapping behavior.
- `weight` (`TypographyWeight`): Font weight.
- `align` (`TypographyAlign`): Horizontal alignment.
- `caps` (`boolean`): Uppercase with wide `--letter-spacing-caps` tracking.
- `truncate` (`boolean`): Keep to one line and cut off with an ellipsis. The full text stays in the DOM for screen readers; give sighted users a way to see it (e.g. `title`).
- `lineClamp` (`number`): Clamp to this many lines, ending in an ellipsis.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged with the dynamic `lineClamp` style.
- `as` (`TextElement`): The element to render.
#### Eyebrow
Short uppercase overline above a heading, in the display font. `Text` with `caps`, `weight="bold"`, `size="sm"`, and `tone="primary"` by default. Renders a `p` by default; it is not a heading, so it is not in the outline.
- `size` (`TextSize | "inherit"`): Font size. Block elements default to `md`; inline elements (`span`, `strong`, `em`, `code`, ...) default to `inherit` so they fit their parent.
- `tone` (`TypographyTone`): Text color. Block elements default to `default`; inline elements default to `inherit`.
- `leading` (`TypographyLeading`): Line height. Defaults to `normal` on block elements; inherited otherwise.
- `italic` (`boolean`): Italic style.
- `mono` (`boolean`): Use the monospace font (`--font-mono`).
- `wrap` (`TypographyWrap`): Line wrapping behavior.
- `weight` (`TypographyWeight`): Font weight.
- `align` (`TypographyAlign`): Horizontal alignment.
- `caps` (`boolean`): Uppercase with wide `--letter-spacing-caps` tracking.
- `truncate` (`boolean`): Keep to one line and cut off with an ellipsis. The full text stays in the DOM for screen readers; give sighted users a way to see it (e.g. `title`).
- `lineClamp` (`number`): Clamp to this many lines, ending in an ellipsis.
- `className` (`string`): Additional class names, merged with the component's own.
- `style` (`CSSProperties`): Inline styles, merged with the dynamic `lineClamp` style.
- `as` (`TextElement`): The element to render.
### VisuallyHidden
Docs: https://vjdesigns-ui.org/docs/components/visually-hidden
#### VisuallyHidden
Hides content visually while keeping it available to screen readers.