// Consumer-facing type contracts. These never enter the vendored source closure. import { createRef } from "react"; import { ContentMask, Eyebrow, Fieldset, Form, Prose, GridList, Indicator, List, Meter, SectionHeading } from "../react/src"; const ul = createRef(); const ol = createRef(); const div = createRef(); const form = createRef(); const article = createRef(); const span = createRef(); ; Overview;
  • One
  • ;
  • Three
  • ;
    Layout tile
    ;
  • List tile
  • ;
    { data.get("email"); }} />;
    {control => }
    ; 3}>; Details} />; Content; ; // @ts-expect-error Ordered lists expose the actual ol native ref. ; // @ts-expect-error A layout grid exposes its div, not a list ref. ; // @ts-expect-error Native group naming is required.
    ; // @ts-expect-error A marker's anchored content is required. ; // @ts-expect-error A measured value is required. ; // @ts-expect-error New React APIs do not inherit deprecated Svelte aliases. ; // @ts-expect-error A div's native ref is required when the element is div. Overview; import { Card, Icon, Image, Logo } from "../react/src"; import { Camera } from "lucide-react"; const anchor = createRef(); const svg = createRef(); const img = createRef(); ; ; Region; ; ; Open}>Body; // @ts-expect-error Semantic ink roles exclude arbitrary colors. ; // @ts-expect-error Glyph is required. ; // @ts-expect-error Image alternatives are required. ; // @ts-expect-error Mark mode does not accept a link label. ; // @ts-expect-error A linked Logo requires an anchor ref. ; // @ts-expect-error Cards only accept native React glyphs. ; import { Alert, Button, Breadcrumbs, BrowserMockup, EmptyState, Link, ListContainer, MediaObject, Notification, PhoneMockup, WindowMockup } from "../react/src"; import type { BreadcrumbItem } from "../react/src"; const trail: BreadcrumbItem[] = [{ id: "home", label: "Home", href: "/" }]; Home; An error occurred.; {}} ref={div} />; New request} ref={div} />; } ref={div}>Content; Header} ref={div}>
  • One
  • ; ; Live content; Content; Content; // @ts-expect-error Links always require destinations. Home; // @ts-expect-error Empty states always name the missing content. ; // @ts-expect-error Notifications require announcement text. ; // @ts-expect-error React uses the canonical tone name. ; // @ts-expect-error Both regions of a MediaObject are required. Content; // @ts-expect-error Decorative chrome cannot hide caller content. Content; // @ts-expect-error Decorative frames always require caller content. ; import { Countdown, Pagination, ScrollArea, Steps, Table, Timeline } from "../react/src"; import type { TableCellContext, TableColumn, TableRow, TimelineItem, StepItem, PaginationPage } from "../react/src"; const tableRef = createRef(); const columns: TableColumn[] = [{ key: "name", header: "Name" }]; const rows: TableRow[] = [{ name: "Primary" }]; const stepItems: StepItem[] = [{ id: "one", label: "Set up", state: "current" }]; const timelineItems: TimelineItem[] = [{ id: "one", title: "Created", datetime: "2026-10-19", time: "Today" }]; const pageItems: PaginationPage[] = [{ page: 1, href: "/?page=1", current: true }]; {value}} />; ; ; ; Scrollable content; value + " seconds"} />; // @ts-expect-error Tables require a visible caption.
    ; // @ts-expect-error Native Table ref points to the table, not the outer region.
    ; // @ts-expect-error Timeline data includes a machine-readable time. ; // @ts-expect-error Step state follows the canonical closed vocabulary. ; // @ts-expect-error Page links require an href. ; // @ts-expect-error A keyboard-scrollable region requires a name. ; // @ts-expect-error Remaining duration is caller-owned and required. ; import { FileInput, Rating, ToggleButton } from "../react/src"; const fileRef = createRef(); const ratingRef = createRef(); const toggleRef = createRef(); files?.item(0)} multiple />; value.toFixed()} />; pressed.valueOf()} />; // @ts-expect-error Native file selection cannot be supplied as a string value. ; // @ts-expect-error Native file inputs cannot be prepopulated by a string default. ; // @ts-expect-error A rating requires a serialization name. ; // @ts-expect-error The component owns aria-pressed and cannot submit a form. ; // @ts-expect-error A toggle forwards its actual button ref. ; import { Checkbox, Switch, RadioGroup, Select } from "../react/src"; const choiceRef = createRef(); const selectRef = createRef(); checked.valueOf()} />; checked.valueOf()} />; {option.value}} defaultValue="a" />; event.currentTarget.value} />; // @ts-expect-error Radio option media is a native render function. Media} />; import { SlideFrame, TitleSlide, SectionSlide, TwoColumnSlide, FigureSlide, QuoteSlide, BulletsSlide, Deck } from "../react/src"; ; ; ; Retain

    } end={

    Verify

    } ref={div} />; } caption="Snapshot" ref={div} />; ; ; // @ts-expect-error Slides require an accessible name. ; // @ts-expect-error Decks require a name. ; // @ts-expect-error Both caller-owned columns are required. Retain

    } />; // @ts-expect-error Figures use native React content rather than a Svelte snippet.
    } />; // @ts-expect-error The frame owns the slide role. ; // @ts-expect-error Slides expose a native div ref. ; // @ts-expect-error Outline levels retain the canonical closed vocabulary. ; // @ts-expect-error Surface roles retain the canonical closed vocabulary. ; import { NumberField, Slider, OneTimeCodeInput } from "../react/src"; const nativeInput = createRef(), codeGroup = createRef(); { const value: number | null = next; }} />; ; `${next}%`} onValueChange={next => { const value: number = next; }} />; { const value: string = next; }} />; // @ts-expect-error Native numeric controls cannot receive string values. ; // @ts-expect-error Null is reserved for empty numeric text fields, not ranges. ; // @ts-expect-error Native OTP keyboard hints retain the shared closed vocabulary. ; // @ts-expect-error The native segmented group exposes a fieldset ref. ; // @ts-expect-error Numeric controls expose their input, not their Field root. ; // @ts-expect-error Code entry retains a required visible name. ; import { Swap, CodeBlock, type CodeTokenizer } from "../react/src"; const tokenizer: CodeTokenizer = { tokenize: code => [{ kind: "text", value: code }] }; Pin} on={Pin} ref={toggleRef} onClick={event => event.currentTarget.focus()} onSwappedChange={next => next.valueOf()} />; ; // @ts-expect-error Swap requires a stable accessible name. ; // @ts-expect-error A swap never submits a form. ; // @ts-expect-error Deprecated Svelte alias is not a new React API. {}} />; // @ts-expect-error Face content is native React content, not a snippet function. Pin} />; // @ts-expect-error CodeBlock requires exact source text. ; // @ts-expect-error The source cannot be replaced by caller-owned children.

    Different source

    ; // @ts-expect-error CodeBlock exposes its native root div ref. ; import { InlineEdit, Reveal, type RevealDirection } from "../react/src"; const entryDirection: RevealDirection = "up"; { value.toUpperCase(); }} onValueChange={value => value.toUpperCase()} onEditingChange={next => next.valueOf()} />;

    Review

    ; // @ts-expect-error Committed text remains required. ; // @ts-expect-error Inline editing retains a required visible name. ; // @ts-expect-error React retains native maxLength casing. ; // @ts-expect-error Persistence resolves void; booleans cannot silently mean confirmation. false} />; // @ts-expect-error The field-group ref is a div. ; // @ts-expect-error Direction retains the canonical closed vocabulary. ; // @ts-expect-error Motion delay is a number of milliseconds. ; // Identity alternatives, native groups, and a caller-owned appearance axis. import { Avatar, ToggleGroup, AppearanceSwitch } from "../react/src"; const avatarRef = createRef(); const scopeRef = createRef(); const appearanceRef = createRef(); export const identityControls = <> value.toUpperCase()} /> value.toUpperCase()} /> ; // @ts-expect-error An avatar requires a text or icon alternative. export const unnamedAvatar = ; // @ts-expect-error Theme is an axis value; axis only accepts the independent axis vocabulary. export const invalidAppearanceAxis = ; // @ts-expect-error Single selection is a string. export const invalidToggleValue = ; import { parseDate } from "@internationalized/date"; import { Dialog, Drawer, AlertDialog, Popover, Tooltip, Accordion, Tabs, SearchSelect, Combobox, DateField, TimeField, DateRangeField, TimeRangeField, Calendar, RangeCalendar, DatePicker, DateRangePicker, Carousel, Navbar, NavigationMenu, NavigationScope, DropdownMenu, LinkPreview } from "../react/src"; export const requestReview = <> ()} actions={({ close }) => }> value.toUpperCase()} /> } /> { event.preventDefault(); }} /> values.map(value => value.toUpperCase())} /> } /> {item =>

    {item.value}

    }
    {item =>

    {item.value}

    }
    text.trim()} /> value.toUpperCase()} /> value.end.trim()} /> value?.add({days:1})} /> value.end?.toString()} /> Tip

    }]} viewport={context =>

    {context.active}

    } /> Monitor} links={[]} /> { href.trim(); event.preventDefault(); }}> {}}]} /> ; // @ts-expect-error A multi-select callback receives an array, not a string. {}} />; // @ts-expect-error Calendar values retain the portable DateValue contract. ; // @ts-expect-error Calendar trigger and grid require distinct accessible names. ; // @ts-expect-error Native overlay refs are HTMLDialogElement refs. ;