Skip to content
Slotted

Tree

A hierarchy of nodes that open, close and can be chosen, with search, lazy branches and virtual scrolling.

  • Beverages148
    • Coffee62
    • Tea54
    • Soft drinks32
  • Household76

Installation

The packages are a 0.x beta on npm, and their public API changes between beta releases without deprecation. One line installs the binding and the default theme.

bash
pnpm add @slotted/react @slotted/theme @slotted/themes
tsx
import { Tree, TreeDefaultsProvider, TreeDescription, TreeEmpty,  TreeGroup, TreeIcon, TreeLabel, TreeMeta, TreeNode } from '@slotted/react';

Nodes from data

nodes renders a hierarchy you already hold, and getKey, getLabel and getChildren read it. A node written by hand suits a short, fixed tree; nodes is what expandAll, the cascade, the search and virtual scrolling need, because the children of a closed branch are not in the DOM. The buttons call the handle that handleRef gives in React and the slTree template reference gives in Angular.

  • Household

Flat rows

A backend often returns a hierarchy as rows in reading order, each with its depth. getLevel reads that depth, and no nested structure has to be built first.

  • Assets1000
    • Cash and equivalents1100
      • Operating account1110
      • Payroll account1120
    • Receivables1200

What opens a branch

expandOn decides what a press does. row, the default, opens a branch from anywhere on its row and also chooses it. expander leaves opening to the chevron, whose target grows to the minimum pointer size, so a press on the row only chooses. Use expander when a branch is itself something to choose.

The whole row
  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
The chevron alone
  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household

Controlled

The selection, the open branches and the position of the keyboard are three separate values. React takes value, expandedKeys and activeKey with a change handler each; Angular binds each two ways. The request sent with a change carries its reason and cancel().

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
Chosen: tea. Open: beverages.

Choosing several nodes

selectionMode="multiple" draws a checkbox on every row and holds a set of keys. A press changes one node and leaves the others. Shift with an arrow key extends the selection, and Control+A chooses every visible node.

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Pantry
    • Oils and vinegars
  • Household

Cascade

selectionCascade="descendants" makes a branch stand for what is under it. Choosing Orders chooses its three permissions, and a branch that holds part of its children draws a dash. Approve payouts is disabled, so choosing Finance leaves it as it was.

  • Orders
    • View orders
    • Edit orders
    • Issue refunds
  • Finance
    • View invoices
    • Approve payouts
  • Reports

Selection as in a file list

selectionBehavior="replace" makes a plain press choose one row and drop the rest. Control or Command adds a row, and Shift chooses a range. Set selectionIndicator="highlight" with it, because a checkbox says that each press is independent.

  • Contracts
    • Contoso Foods 2026.pdf
    • Fabrikam Supply 2026.pdf
    • Atlas Freight renewal.pdf
  • Forecasts
    • Q3 demand.xlsx
    • Q4 demand.xlsx

Selection indicator

selectionIndicator decides how a choice is drawn and which attribute states it: highlight writes aria-selected and checkbox writes aria-checked. The default, auto, draws a highlight for a single choice and checkboxes for several. Here a single choice draws the checkbox.

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household

selectionMode="none" writes no selection attribute, for a tree that opens pages. onNodeActivate in React and nodeActivate in Angular fire when a row is pressed and when Enter is pressed on it. The active node stays drawn on the page being shown.

  • Inventory
    • Stock levels
    • Transfers
    • Cycle counts
Open page: Stock levels

Row content

A row holds an icon, the name, a muted description, trailing meta and trailing controls. React takes them as props of TreeNode; Angular projects elements marked slTreeIcon, slTreeDescription, slTreeMeta and slTreeActions. One icon anywhere reserves the cell on every row, so the names stay in one column. A long name truncates before its meta.

  • Contracts2
    • Contoso Foods 2026.pdfSigned1.2 MB
    • Fabrikam Supply master services agreement, amended.pdfDraft840 kB
  • Forecasts1
    • Q4 demand.xlsxEdited today96 kB

Row content from data

With nodes, renderCells in React returns the cells of one row. In Angular, an ng-template marked slTreeCell fills one cell of every row and holds the directive of that cell. A cell left out is not drawn, and the name stays the one getLabel returns.

  • Columbus, OH2 zones
    • Zone A1,840
    • Zone BCounting920

Icons by state

An icon can follow the branch it stands on. This tree controls expandedKeys and draws an open folder on every key in it.

  • Contracts
    • Contoso Foods 2026.pdf
    • Fabrikam Supply 2026.pdf
    • Atlas Freight renewal.pdf

Trailing controls

The controls in actions are always in the DOM, and each is a tab stop of its own. A press on one neither chooses nor opens the row, and the keys pressed on it are its own.

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
No action yet.

Sizes

size moves the row height, the type size, the glyph and the indent together: sm, md, the default, or lg.

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household

Variants

plain, the default, draws no box, for a panel or a drawer that already has an edge. framed draws an edge, a radius and a shadow, for a tree that stands alone on a page.

  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household
  • Beverages
    • Coffee
    • Tea
    • Soft drinks
  • Household

Guides

Each guide runs under the chevron of an ancestor and says which branch a row belongs to. Set guides to false for a tree of two levels, where the indent is enough.

  • Pantry
    • Oils and vinegars
    • Spices
      • Ground spices
      • Whole spices
  • Household
  • Pantry
    • Oils and vinegars
    • Spices
      • Ground spices
      • Whole spices
  • Household

States

A disabled node keeps its place, and the arrow keys pass over it unless navigateDisabled is set. readOnly fixes the selection while branches still open, disabled stops the whole tree, and invalid draws the edge of a framed tree in the danger tone.

One node disabled
  • Finance
    • View invoices
    • Approve payouts
  • Reports
Read only
  • Finance
    • View invoices
    • Approve payouts
  • Reports
Disabled
  • Finance
    • View invoices
    • Approve payouts
  • Reports
Invalid
  • Finance
    • View invoices
    • Approve payouts
  • Reports

Lazy branches

hasChildren draws a chevron on a branch whose children have not been fetched. Start the request when the branch opens and return true from isNodeLoading until it ends: a spinner takes the place of the chevron, the branch has aria-busy, and a live region announces how many items arrived. getChildrenCount states the size of the set while part of it is missing. Open an account to fetch its orders.

  • Atlas Freight

Loading

loading writes aria-busy on the tree while its first nodes arrive. Rows with a Skeleton as the label hold the place of the names, at widths that vary by row, and SkeletonRegion waits 200 milliseconds before it draws. Refresh locations starts a 1.5-second load.

Empty

emptyContent in React and an element marked slTreeEmpty in Angular show when the tree holds no node. The tree keeps its role and its name.

    No archived categories

    query filters nodes by name. Every match keeps the branches above it, the matched text is marked, and the path to it is open while the query lasts. The set of branches the reader opened does not change, so clearing the field brings it back. The field is yours.

    • Pantry
      • Spices
        • Ground spices
        • Whole spices

    Revealing a node

    scrollToKey opens the branches above a node and scrolls to it. The second argument places it at the start, the center or the end, or moves as little as possible with nearest, the default.

    • Warehouse CMH
      • Aisle A
        • Bin CMH-A-01
        • Bin CMH-A-02
        • Bin CMH-A-03
        • Bin CMH-A-04
        • Bin CMH-A-05
        • Bin CMH-A-06
        • Bin CMH-A-07
        • Bin CMH-A-08

    Virtual scrolling

    virtual renders only the rows in view, plus overscan rows on each side. Set itemSize to the row height in pixels. The rows are flat and state their own level, and the active node stays in the document while it is out of view. This tree holds 3,624 rows.

    • 2025-01
    • SO-10000
    • SO-10001
    • SO-10002

    In a form

    In React, name renders one hidden input for each chosen key, so a native form carries the set. In Angular, the tree is the form control: bind formControlName or ngModel.

    • Beverages
      • Coffee
      • Tea
      • Soft drinks
    • Household

    Defaults for an application

    TreeDefaultsProvider in React and provideTreeDefaults in Angular set the axes once for every tree under them. A value set on a tree still wins: the second tree below turns its guides back on.

    • Beverages
      • Coffee
      • Tea
      • Soft drinks
    • Household
    • Beverages
      • Coffee
      • Tea
      • Soft drinks
    • Household

    Recipe: a catalog browser

    A tree filters the list beside it. expandOn="expander" lets a branch be chosen without closing it, and disallowEmptySelection keeps one category chosen. Choosing a branch lists the products of every category under it.

    • Beverages
      • Coffee
      • Tea
      • Soft drinks
    • Pantry
      • Oils and vinegars
    • Household
    • House blend, 1 kg
      BEV-104
    • Decaf espresso, 500 g
      BEV-131
    • Earl grey, 50 bags
      BEV-220
    • Ginger ale, 24 cans
      BEV-305

    Recipe: an access editor

    The cascade, the search and a disabled permission together. The count reads the permissions and leaves out the branches that the cascade adds to the value.

    • Orders
      • View orders
      • Edit orders
      • Issue refunds
    • Finance
      • View invoices
      • Approve payoutsOwners only
    • Reports
    2 permissions granted

    Accessibility

    KeyEffectFocus
    Tabmoves into and out of the tree; the whole tree is one tab stopthe active node under roving, the canvas under activedescendant
    ArrowRightopens a closed branch; on an open branch moves into it; on a leaf does nothingunchanged, then the first child
    ArrowLeftcloses an open branch; on a leaf or a closed branch moves to the parent; at the root level does nothingunchanged, then the parent
    ArrowDownmoves to the next visible node without opening or closing anythingthat node
    ArrowUpmoves to the previous visible node without opening or closing anythingthat node
    Homemoves to the first visible nodethat node
    Endmoves to the last visible nodethat node
    PageDownmoves ten visible nodes on, clamping at the end rather than wrappingthat node
    PageUpmoves ten visible nodes back, clamping at the startthat node
    Enteractivates the node; under expandOn=row a branch also togglesunchanged
    Spacetoggles the selection of the active nodeunchanged
    Shift+ArrowDownmoves and toggles the selection of the node moved to, in multiplethe next visible node
    Shift+ArrowUpthe same, backwardsthe previous visible node
    Shift+Spaceselects from the anchor to the active node, in multipleunchanged
    Control+Shift+Homeselects from the active node to the first visible one, in multipleunchanged
    Control+Shift+Endselects from the active node to the last visible one, in multipleunchanged
    Control+Aselects every visible enabled node, or clears when they are already all selected, unless disallowSelectAllunchanged
    *opens every sibling at the level of the active nodeunchanged
    a printable charactermoves to the next visible node whose label starts with what has been typedthat node
    • The tree takes its accessible name from aria-label or aria-labelledby, which reach the element with role="tree".
    • Each node is named by its own label through aria-labelledby. A treeitem contains its children, so a name computed from its contents would be everything under it.
    • aria-expanded is written on branches and never on leaves, which would otherwise be announced as parents.
    • Selection is stated with aria-selected under the highlight and with aria-checked under the checkbox, and never with both.
    • aria-level, aria-setsize and aria-posinset are written while the rows are flat. A nested tree leaves them to the browser, except on the children of a branch that is still missing some of them.
    • The whole tree is one tab stop. Focus lands on the chosen node when there is one and on the first node otherwise, and a virtual tree keeps the active node in the document.
    • A control in the trailing cell of a row is a tab stop of its own and receives its own keys.
    • A branch whose children are arriving has aria-busy, and a polite live region announces the branch and how many items arrived.

    API

    Tree

    Props

    valuestring | readonly string[] | null
    The chosen key, or the set of chosen keys in multiple. When it is present the selection is controlled.
    defaultValuestring | readonly string[] | null
    The selection an uncontrolled tree starts with.
    expandedKeysreadonly string[]
    The keys of the open branches. When it is present the expansion is controlled. A query never changes it.
    defaultExpandedKeysreadonly string[]
    The branches an uncontrolled tree starts with open.
    activeKeystring | null
    The node the keyboard is on, which is separate from the selection. When it is present the position is controlled.
    defaultActiveKeystring | null
    The node the keyboard starts on in an uncontrolled tree.
    size'sm' | 'md' | 'lg'Default md
    The row height, the type size, the glyph size and the indent, which move together.
    variant'plain' | 'framed'Default plain
    Whether the tree draws its own box. plain draws none and framed draws an edge, a radius and a shadow.
    structure'auto' | 'nested' | 'flat'Default auto
    Whether the nodes nest in groups or lie flat with their level stated. auto is flat while virtual and nested otherwise. Only a tree built from nodes can be flat.
    selectionMode'none' | 'single' | 'multiple'Default single
    How many nodes can be chosen at once. none writes no selection attribute on any node.
    selectionBehavior'toggle' | 'replace'Default toggle
    What a plain press does. toggle changes one node and needs no modifier key; replace collapses the selection onto the node pressed, and Ctrl, Command and Shift extend it.
    selectionIndicator'auto' | 'highlight' | 'checkbox' | 'none'Default auto
    How the selection is drawn and which attribute states it. highlight writes aria-selected, checkbox writes aria-checked, and auto draws a checkbox in multiple and a highlight in single.
    selectionCascade'none' | 'descendants'Default none
    Whether choosing a branch also chooses its enabled descendants. descendants needs nodes.
    expandOn'row' | 'expander'Default row
    What opens a branch. row gives the whole row and the chevron that job; expander leaves it to the chevron alone.
    focusMode'auto' | 'roving' | 'activedescendant'Default auto
    How the position of the keyboard is expressed. auto is activedescendant while virtual and a roving tab stop otherwise.
    guidesbooleanDefault true
    Whether the lines that tie a row to its parent are drawn.
    loopbooleanDefault false
    Whether the arrow keys wrap past the first and the last node.
    typeaheadbooleanDefault true
    Whether typing a name moves the keyboard to the node that starts with it.
    typeaheadTimeoutnumberDefault 500
    The milliseconds of silence that start a new typeahead search.
    selectOnFocusbooleanDefault false
    Whether moving the keyboard also chooses the node it lands on.
    navigateDisabledbooleanDefault false
    Whether the arrow keys land on a disabled node.
    disallowEmptySelectionbooleanDefault false
    Whether the last chosen node stays chosen when it is pressed again.
    disallowSelectAllbooleanDefault false
    Whether Control+A is kept from choosing every visible node.
    pageSizenumberDefault 10
    How many nodes Page Up and Page Down move by.
    virtualbooleanDefault false
    Whether only the rows in view are rendered. It needs nodes and itemSize, and it lays the rows flat.
    itemSizenumberDefault 32
    The height of one row in pixels, read while virtual.
    overscannumberDefault 4
    How many rows are rendered on each side of the rows in view, while virtual.
    disabledbooleanDefault false
    Whether the whole tree is disabled.
    readOnlybooleanDefault false
    Whether the selection is fixed while the tree can still be opened and walked.
    requiredbooleanDefault false
    Whether the tree states that a choice is required.
    invalidbooleanDefault false
    Whether the tree is drawn and announced as being in error.
    loadingbooleanDefault false
    Whether the nodes of the tree are still arriving. It writes aria-busy on the tree.
    namestring
    The form name. The tree renders one hidden input per chosen key under it.
    nodesreadonly T[]
    The hierarchy the tree renders. selectionCascade, expandAll, query and virtual read it.
    getKey(node: T) => string
    Returns the key of a node. It is required with nodes.
    getLabel(node: T) => string
    Returns the name of a node, which is what the row shows and what typeahead and query match.
    getChildren(node: T) => readonly T[] | undefined
    Returns the children of a node, for a nested hierarchy.
    getLevel(node: T) => number
    Returns the depth of a node, for nodes that arrive as a flat list in reading order.
    hasChildren(node: T) => boolean
    Returns whether a node is a branch before its children have arrived.
    getChildrenCount(node: T) => number | undefined
    Returns how many children a branch will have. Until all of them arrive, the ones present state the size of the whole set.
    isNodeDisabled(node: T) => boolean
    Returns whether a node is disabled.
    isNodeLoading(node: T) => boolean
    Returns whether the children of a node are arriving.
    querystring
    The text the tree filters nodes by. The field it is typed into is yours.
    renderCells(node: T, key: string) => TreeNodeCells
    Returns the icon, label, description, meta and actions of one row of nodes. A cell left out is not drawn, and a label left out is the name getLabel returns.
    messagesPartialMessages<TreeMessages>
    The words the tree announces, over the ones of the language in force.
    emptyContentReactNode
    What the tree shows when it holds no node or the query matches none.
    render(props: TreeRootProps) => ReactNode
    Renders the root as another element.
    handleRefRef<TreeHandle>
    The imperative handle: focus, scrollToKey, expand, collapse, expandAll, collapseAll, getActiveKey and getElement.
    labelReactNode
    On TreeNodeThe name of the node, which is also its accessible name.
    descriptionReactNode
    On TreeNodeA second, muted text after the name. It is hidden when the tree is narrower than 240 pixels.
    iconReactNode
    On TreeNodeThe leading icon. One node with an icon reserves the same cell on every row.
    metaReactNode
    On TreeNodeThe trailing count, size or badge.
    actionsReactNode
    On TreeNodeThe trailing controls. A press on one of them does not choose or open the row.
    textValuestring
    On TreeNodeThe text typeahead matches, for a label that is not plain text.
    match'hit' | 'ancestor'
    On TreeNodeWhether a query matched this node or one below it. The tree writes it on the rows of nodes; a tree you write by hand states it.
    pinnedboolean
    On TreeNodeWhether the node is placed outside the rows in view. The tree sets it while virtual.
    offsetnumber
    On TreeNodeWhere a pinned row sits, in pixels. The tree sets it while virtual.
    depthnumber
    On TreeNodeThe depth of the node in the flat structure. Elsewhere the markup states it.

    Events

    NamePayloadWhen
    onValueChange(value: string | readonly string[] | null, request: ChangeRequest)Before the selection changes. The value is one key, or the set in multiple. The request carries the previous value, the reason (pointer, keyboard, select, clear or programmatic), the originating event and cancel().
    onExpandedKeysChange(keys: readonly string[], request: ChangeRequest)Before a branch opens or closes. The reasons are pointer, keyboard and programmatic. A query holds branches open without this event.
    onActiveKeyChange(key: string | null, request: ChangeRequest)Before the keyboard moves to another node. The reasons are pointer, keyboard and programmatic. Closing a branch that holds the active node emits this event first.
    onNodeActivate(key: string, reason: 'pointer' | 'keyboard')When a node is pressed, or Enter is pressed on it. Use it to open what the node stands for; it does not depend on the selection.

    Composition

    TreeDefaultsProvider{ size, variant, expandOn, … }
    On a subtreeSets the axes once for every tree under it. A prop on a tree still wins.
    render(props) => ReactNode
    On Tree, TreeNodeRenders the part as another element with the attributes and handlers it receives.
    label, description, icon, meta, actionsReactNode
    On TreeNodeThe cells of a row written by hand. Each takes any content.
    handleRefRef<TreeHandle>
    Reaches focus, scrollToKey, expand, collapse, expandAll, collapseAll, getActiveKey and getElement.
    onClick(event: MouseEvent) => void
    On TreeNodeRuns before the row acts, and preventDefault keeps the row from acting.
    data-expanded, data-selected, data-loadingattribute
    On the nodeThe state of a node in the DOM, which lets CSS change an icon by state.

    Parts

    PartElementRequiredPurpose
    rootdiv, or the element render returnsYesThe box around the tree. It carries data-ui="tree" and every axis, it is the container the indent adapts to, and in the flat structure it is also the scroller.
    canvasul with role="tree"YesThe tree itself: the accessible name, aria-multiselectable and the single tab stop. While virtual it also holds the full height of the list.
    nodeli with role="treeitem"YesOne node. It carries the key, the depth, aria-expanded on a branch and the selection attribute, and it is named by its own label, so a branch is not announced as everything under it.
    rowdivYesThe line that is shown and pressed. It is separate from the node, which also contains the children, so a press on a child does not press its parent.
    guidespanNoOne line per ancestor level, under the chevron of that level. It is absent at the root level and when guides is false.
    expanderspanYesThe chevron. It is not a button, because a tree has one tab stop. A leaf keeps the cell empty, so the names at one depth start in one column.
    indicatorspanNoThe checkbox, under selectionIndicator="checkbox". The other indicators draw no cell.
    iconspanNoThe leading icon, which you supply. One node with an icon reserves the same cell on every row.
    labelspanYesThe name. It names the node, it is what typeahead matches, and a long name truncates while staying whole in the DOM.
    descriptionspanNoA second, muted text after the name. It is hidden when the tree is narrower than 240 pixels.
    metaspanNoThe trailing count, size or badge. It keeps its own width, so a long name truncates before it.
    loaderspan with data-ui="spinner"NoThe spinner of a branch whose children are arriving. It takes the cell and the size of the chevron, so nothing moves.
    actionsdivNoThe trailing controls. They are always in the DOM, and the keys and clicks they receive are not the row's.
    groupul with role="group"NoThe children of an open branch. A closed branch renders none.
    emptydivNoWhat the tree shows when it holds no node or the query matches none.

    Theming

    Each token is a CSS custom property: set it in a theme, or on any element to retune every tree inside it.

    Tree tokens

    TokenDefault
    --slotted-tree-border-colorvar(--slotted-control-border-color)
    --slotted-tree-guide-colorcolor-mix(in oklab, var(--slotted-border-strong) 60%, var(--slotted-border-subtle))
    --slotted-tree-highlightvar(--slotted-tone-secondary-subtle-hover)
    --slotted-tree-highlight-activevar(--slotted-tone-secondary-subtle-active)
    --slotted-tree-indentcalc(var(--_icon-size) / 2 + var(--slotted-space-4, 0.5rem))
    --slotted-tree-mark-inset2px
    --slotted-tree-measure28rem
    --slotted-tree-padding-blockvar(--slotted-space-2, 0.25rem)
    --slotted-tree-padding-inlinevar(--slotted-space-2, 0.25rem)
    --slotted-tree-radiusvar(--slotted-radius-md, 6px)
    --slotted-tree-rows12
    --slotted-tree-selected-edgevar(--slotted-tone-accent-border)
    --slotted-tree-selected-surfacevar(--slotted-tone-accent-surface)
    --slotted-tree-selected-textvar(--slotted-tone-accent-text)
    --slotted-tree-shadowvar(--slotted-control-shadow)
    --slotted-tree-surfacevar(--slotted-surface, #ffffff)
    --slotted-tree-textvar(--slotted-text, #0f172a)
    --slotted-tree-text-mutedvar(--slotted-text-muted, #5b6b7f)

    Theme tokens it reads

    TokenDefault
    --slotted-border-strongSet per scheme by the theme
    --slotted-border-subtleSet per scheme by the theme
    --slotted-border-width-medium1.5px
    --slotted-border-width-thin1px
    --slotted-control-border-colorSet per scheme by the theme
    --slotted-control-font-size-lgcomfortable 14px · compact 13px · dense 12px
    --slotted-control-font-size-mdcomfortable 13px · compact 12px · dense 12px
    --slotted-control-font-size-smcomfortable 12px · compact 12px · dense 12px
    --slotted-control-gap-lgcomfortable 8px · compact 6px · dense 6px
    --slotted-control-gap-mdcomfortable 8px · compact 6px · dense 4px
    --slotted-control-gap-smcomfortable 6px · compact 4px · dense 4px
    --slotted-control-height-lgcomfortable 38px · compact 32px · dense 30px
    --slotted-control-height-mdcomfortable 34px · compact 28px · dense 26px
    --slotted-control-height-smcomfortable 30px · compact 26px · dense 24px
    --slotted-control-icon-size-lgcomfortable 18px · compact 16px · dense 14px
    --slotted-control-icon-size-mdcomfortable 16px · compact 14px · dense 13px
    --slotted-control-icon-size-smcomfortable 14px · compact 13px · dense 12px
    --slotted-control-invalid-edge-widthvar(--slotted-border-width-thin)
    --slotted-control-padding-inline-lgcomfortable 16px · compact 12px · dense 10px
    --slotted-control-padding-inline-mdcomfortable 13px · compact 10px · dense 8px
    --slotted-control-padding-inline-smcomfortable 10px · compact 8px · dense 6px
    --slotted-control-shadowSet per scheme by the theme
    --slotted-control-transition-durationvar(--slotted-duration-short)
    --slotted-control-transition-easingvar(--slotted-easing-standard)
    --slotted-disabled-backgroundSet per scheme by the theme
    --slotted-disabled-borderSet per scheme by the theme
    --slotted-disabled-foregroundSet per scheme by the theme
    --slotted-duration-medium200ms
    --slotted-duration-short120ms
    --slotted-easing-standardcubic-bezier(0.2, 0, 0, 1)
    --slotted-focus-ring-colorSet per scheme by the theme
    --slotted-focus-ring-color-invalidSet per scheme by the theme
    --slotted-focus-ring-widthvar(--slotted-border-width-thick)
    --slotted-font-family-sans'Geist Variable', ui-sans-serif, system-ui, sans-serif
    --slotted-font-size-xs0.75rem
    --slotted-font-weight-semibold600
    --slotted-highlight-tint-opacity0.075
    --slotted-line-height-sm1.45
    --slotted-radius-md6px
    --slotted-radius-xs2px
    --slotted-selection-size-lg18px
    --slotted-selection-size-md16px
    --slotted-selection-size-sm14px
    --slotted-space-10.125rem
    --slotted-space-20.25rem
    --slotted-space-30.375rem
    --slotted-space-40.5rem
    --slotted-space-50.75rem
    --slotted-surfaceSet per scheme by the theme
    --slotted-target-min24px
    --slotted-textSet per scheme by the theme
    --slotted-text-mutedSet per scheme by the theme
    --slotted-tone-accent-borderSet per scheme by the theme
    --slotted-tone-accent-on-solidSet per scheme by the theme
    --slotted-tone-accent-solidSet per scheme by the theme
    --slotted-tone-accent-surfaceSet per scheme by the theme
    --slotted-tone-accent-textSet per scheme by the theme
    --slotted-tone-danger-borderSet per scheme by the theme
    --slotted-tone-secondary-subtle-activeSet per scheme by the theme
    --slotted-tone-secondary-subtle-hoverSet per scheme by the theme