Tabs
A row of tabs over a set of panels, for switching between views of one record or one screen without leaving it.
- Customer
- Harbor & Pine
- Placed
- September 8, 2026
- Payment terms
- Net 30
- Total
- $1,240.00
import { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm,} from '@slotted/react/description-list';import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const SECTIONS = [ { value: 'summary', label: 'Summary', pairs: [ ['Customer', 'Harbor & Pine'], ['Placed', 'September 8, 2026'], ['Payment terms', 'Net 30'], ['Total', '$1,240.00'], ], }, { value: 'items', label: 'Items', pairs: [ ['Oak shelf, 90 cm', '4 × $180.00'], ['Wall bracket, steel', '8 × $24.00'], ['Assembly kit', '1 × $328.00'], ], }, { value: 'shipments', label: 'Shipments', pairs: [ ['Carrier', 'Atlas Freight'], ['Tracking', 'AF-2210-4471'], ['Expected', 'September 12, 2026'], ], },];const ACTIVITY = [ 'Sep 9, 14:02 — Picked at Reno, NV', 'Sep 8, 16:45 — Payment approved', 'Sep 8, 16:41 — Order placed by Dana Whitfield',];export default function TabsBasic() { return ( <Tabs defaultValue="summary"> <TabList aria-label="Order SO-1187"> {SECTIONS.map((section) => ( <Tab key={section.value} value={section.value}> {section.label} </Tab> ))} <Tab value="activity">Activity</Tab> </TabList> {SECTIONS.map((section) => ( <TabPanel key={section.value} value={section.value}> <DescriptionList> {section.pairs.map(([term, description]) => ( <DescriptionListItem key={term}> <DescriptionListTerm>{term}</DescriptionListTerm> <DescriptionListDescription>{description}</DescriptionListDescription> </DescriptionListItem> ))} </DescriptionList> </TabPanel> ))} <TabPanel value="activity"> <Stack gap={2}> {ACTIVITY.map((entry) => ( <Text key={entry} size="sm"> {entry} </Text> ))} </Stack> </TabPanel> </Tabs> );}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.
pnpm add @slotted/react @slotted/theme @slotted/themesimport { Tab, TabActions, TabList, TabPanel, Tabs, TabsDefaultsProvider } from '@slotted/react';Variants
line is the default: labels over a hairline, with the marker under the selected tab. contained draws a sunken track with a surface for the selected tab, for a set of views inside a card or a toolbar. track="none" keeps the labels and the marker and drops the hairline, for a list placed on a line the page already draws, such as the edge of a card header.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs, type TabsTrack, type TabsVariant,} from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const LOOKS: { variant: TabsVariant; track: TabsTrack }[] = [ { variant: 'line', track: 'line' }, { variant: 'contained', track: 'line' }, { variant: 'line', track: 'none' },];const QUEUES = [ { value: 'incoming', label: 'Incoming', panel: '14 purchase orders due this week.' }, { value: 'outgoing', label: 'Outgoing', panel: '32 sales orders ready to ship.' }, { value: 'returns', label: 'Returns', panel: '3 returns awaiting inspection.' },];export default function TabsVariants() { return ( <Stack gap={8}> {LOOKS.map((look) => ( <Tabs key={`${look.variant}-${look.track}`} defaultValue="incoming" track={look.track} variant={look.variant} > <TabList aria-label="Warehouse queues"> {QUEUES.map((queue) => ( <Tab key={queue.value} value={queue.value}> {queue.label} </Tab> ))} </TabList> {QUEUES.map((queue) => ( <TabPanel key={queue.value} value={queue.value}> <Text size="sm">{queue.panel}</Text> </TabPanel> ))} </Tabs> ))} </Stack> );}Sizes
size sets the list to one step of the control scale: sm for dense panels and table toolbars, md for most screens, lg for a page’s top-level views. The height, type, padding and icon size follow the step.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs, type TabsSize } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const SIZES: TabsSize[] = ['sm', 'md', 'lg'];const VIEWS = [ { value: 'stock', label: 'Stock', panel: '1,284 units on hand across 3 warehouses.' }, { value: 'movements', label: 'Movements', panel: '46 movements in the last 7 days.' }, { value: 'suppliers', label: 'Suppliers', panel: 'Ordered from Brightline Studio and Quill & Co.', },];export default function TabsSizes() { return ( <Stack gap={8}> {SIZES.map((size) => ( <Tabs key={size} defaultValue="stock" size={size}> <TabList aria-label="Product OAK-90"> {VIEWS.map((view) => ( <Tab key={view.value} value={view.value}> {view.label} </Tab> ))} </TabList> {VIEWS.map((view) => ( <TabPanel key={view.value} value={view.value}> <Text size="sm">{view.panel}</Text> </TabPanel> ))} </Tabs> ))} </Stack> );}Equal widths
fit="equal" divides the line into equal shares, one per tab, for two to four short labels that should line up with the content below. A label longer than its share is cut with an ellipsis and keeps its full text as the tab’s name. With the default fit="auto", each tab is as wide as its label and the list scrolls instead.
import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const QUEUES = [ { value: 'incoming', label: 'Incoming', panel: '14 purchase orders due this week.' }, { value: 'outgoing', label: 'Outgoing', panel: '32 sales orders ready to ship.' }, { value: 'inspection', label: 'Awaiting inspection', panel: '3 returns wait for a quality check before restocking.', },];export default function TabsFit() { return ( <Tabs defaultValue="incoming" fit="equal" variant="contained"> <TabList aria-label="Warehouse queues"> {QUEUES.map((queue) => ( <Tab key={queue.value} value={queue.value}> {queue.label} </Tab> ))} </TabList> {QUEUES.map((queue) => ( <TabPanel key={queue.value} value={queue.value}> <Text size="sm">{queue.panel}</Text> </TabPanel> ))} </Tabs> );}Vertical
orientation="vertical" stacks the tabs in a column beside the panels, for settings sections and long lists of views. Up and Down arrows move between tabs, and the list carries aria-orientation="vertical". A vertical list never scrolls sideways: the page scrolls.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const SECTIONS = [ { value: 'general', label: 'General', lines: ['Code: RNO', 'Address: 1450 Terminal Way, Reno, NV 89502', 'Time zone: Pacific Time'], }, { value: 'receiving', label: 'Receiving', lines: ['Dock hours: 06:00–14:00, Monday to Friday', 'Appointment required for full trucks'], }, { value: 'shipping', label: 'Shipping', lines: ['Carriers: Atlas Freight, Ridgeway Parcel', 'Daily cut-off: 15:30'], }, { value: 'storage', label: 'Storage', lines: ['Zones: A–F, 1,920 bin locations', 'Cycle count: every 30 days'], },];export default function TabsVertical() { return ( <Tabs defaultValue="general" orientation="vertical"> <TabList aria-label="Warehouse settings"> {SECTIONS.map((section) => ( <Tab key={section.value} value={section.value}> {section.label} </Tab> ))} </TabList> {SECTIONS.map((section) => ( <TabPanel key={section.value} value={section.value}> <Stack gap={2}> {section.lines.map((line) => ( <Text key={line} size="sm"> {line} </Text> ))} </Stack> </TabPanel> ))} </Tabs> );}Icons and counts
start puts an icon before the label and end puts a count or a status after it; in Angular, mark those elements with slTabStart and slTabEnd. Both stand beside the label inside the tab, so the tab’s gap spaces them and only the words are cut under fit="equal". A Badge with count hides itself at zero unless it has showZero.
import { Badge } from '@slotted/react/badge';import { Glyph, type GlyphName, Icon } from '@slotted/react/icon';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const VIEWS: { value: string; label: string; icon: GlyphName; count?: number; panel: string }[] = [ { value: 'overview', label: 'Overview', icon: 'file-text', panel: 'Harbor & Pine, customer since 2021. Net 30 terms.', }, { value: 'orders', label: 'Orders', icon: 'inbox', count: 12, panel: '12 open orders, $14,380.00 in total.', }, { value: 'contacts', label: 'Contacts', icon: 'person', count: 3, panel: 'Dana Whitfield, Marco Ilić and Priya Raman.', }, { value: 'files', label: 'Files', icon: 'paperclip', panel: 'Signed credit application and a W-9 form.', },];export default function TabsIcons() { return ( <Tabs defaultValue="orders"> <TabList aria-label="Customer Harbor & Pine"> {VIEWS.map((view) => ( <Tab key={view.value} value={view.value} start={ <Icon> <Glyph name={view.icon} /> </Icon> } end={view.count === undefined ? undefined : <Badge count={view.count} size="sm" />} > {view.label} </Tab> ))} </TabList> {VIEWS.map((view) => ( <TabPanel key={view.value} value={view.value}> <Text size="sm">{view.panel}</Text> </TabPanel> ))} </Tabs> );}Disabled tabs
disabled on a tab removes it from the arrow-key sequence and from pointer selection while the rest of the list works. disabled on Tabs disables every tab. A disabled tab cannot receive focus, so state the reason on the screen, here in the open panel.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';export default function TabsDisabled() { return ( <Stack gap={8}> <Tabs defaultValue="summary"> <TabList aria-label="Order SO-1192"> <Tab value="summary">Summary</Tab> <Tab value="items">Items</Tab> <Tab disabled value="invoice"> Invoice </Tab> </TabList> <TabPanel value="summary"> <Text size="sm">Awaiting pickup. The invoice is issued once the order ships.</Text> </TabPanel> <TabPanel value="items"> <Text size="sm">5 items from the Reno, NV warehouse.</Text> </TabPanel> <TabPanel value="invoice"> <Text size="sm">Invoice INV-20931.</Text> </TabPanel> </Tabs> <Tabs defaultValue="summary" disabled> <TabList aria-label="Order SO-1188"> <Tab value="summary">Summary</Tab> <Tab value="items">Items</Tab> <Tab value="invoice">Invoice</Tab> </TabList> <TabPanel value="summary"> <Text size="sm">Locked while the warehouse recounts this order.</Text> </TabPanel> <TabPanel value="items"> <Text size="sm">2 items from the Columbus, OH warehouse.</Text> </TabPanel> <TabPanel value="invoice"> <Text size="sm">Invoice INV-20917.</Text> </TabPanel> </Tabs> </Stack> );}Activation
With activation="automatic", the default, each arrow key press selects the tab it lands on. With activation="manual", the arrow keys move focus only, and Enter or Space selects. Use manual activation when showing a panel costs a request or a heavy render, so moving across the list does not trigger one per tab.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs, type TabsActivation } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const MODES: { activation: TabsActivation; caption: string }[] = [ { activation: 'automatic', caption: 'Automatic: the arrow keys select as they move.' }, { activation: 'manual', caption: 'Manual: the arrow keys move focus; Enter or Space selects.' },];const REPORTS = [ { value: 'revenue', label: 'Revenue', panel: 'Revenue this quarter: $412,800.00.' }, { value: 'margin', label: 'Margin', panel: 'Gross margin this quarter: 38.4%.' }, { value: 'returns', label: 'Returns', panel: 'Return rate this quarter: 2.1%.' },];export default function TabsActivationExample() { return ( <Stack gap={8}> {MODES.map((mode) => ( <Stack key={mode.activation} gap={3}> <Text size="sm" tone="muted"> {mode.caption} </Text> <Tabs activation={mode.activation} defaultValue="revenue"> <TabList aria-label="Quarterly reports"> {REPORTS.map((report) => ( <Tab key={report.value} value={report.value}> {report.label} </Tab> ))} </TabList> {REPORTS.map((report) => ( <TabPanel key={report.value} value={report.value}> <Text size="sm">{report.panel}</Text> </TabPanel> ))} </Tabs> </Stack> ))} </Stack> );}Controlled
Pass value and update it from onValueChange when something outside the tabs changes the view, such as a link in a notice; in Angular, bind [value] and read the new value from (valueChange). The handler receives the request before the selection moves; request.cancel() keeps the current tab.
import { useState } from 'react';import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const VIEWS = [ { value: 'orders', label: 'Orders', panel: '12 open orders, $14,380.00 in total.' }, { value: 'invoices', label: 'Invoices', panel: 'INV-20877 and INV-20902 are past due: $2,146.50.', }, { value: 'payments', label: 'Payments', panel: 'Last payment: $3,200.00 on September 30.' },];export default function TabsControlled() { const [view, setView] = useState('orders'); return ( <Stack gap={5}> <Inline gap={3} align="center" justify="between"> <Text size="sm" tone="muted"> 2 invoices are past due. </Text> <Button size="sm" variant="outline" onClick={() => setView('invoices')}> Review invoices </Button> </Inline> <Tabs value={view} onValueChange={setView}> <TabList aria-label="Account Harbor & Pine"> {VIEWS.map((item) => ( <Tab key={item.value} value={item.value}> {item.label} </Tab> ))} </TabList> {VIEWS.map((item) => ( <TabPanel key={item.value} value={item.value}> <Text size="sm">{item.panel}</Text> </TabPanel> ))} </Tabs> </Stack> );}Keyboard
Tab moves focus to the selected tab, and a second Tab moves it to the panel. Left and Right move between tabs and wrap at the ends; Home and End reach the first and last enabled tab. Each change reports its reason: pointer for a click, keyboard for the arrows, Home, End, Enter and Space, remove when a closed tab hands the selection to its neighbour.
import { useState } from 'react';import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const STEPS = [ { value: 'picking', label: 'Picking', panel: '18 lines to pick in zone C.' }, { value: 'packing', label: 'Packing', panel: '6 orders waiting at station 2.' }, { value: 'loading', label: 'Loading', panel: 'Atlas Freight trailer at dock 4 until 15:30.' },];export default function TabsKeyboard() { const [last, setLast] = useState('Nothing selected yet.'); return ( <Stack gap={5}> <Tabs defaultValue="picking" onValueChange={(value, request) => { const step = STEPS.find((item) => item.value === value); setLast(`${step?.label} selected by ${request.reason}.`); }} > <TabList aria-label="Outbound shift"> {STEPS.map((step) => ( <Tab key={step.value} value={step.value}> {step.label} </Tab> ))} </TabList> {STEPS.map((step) => ( <TabPanel key={step.value} value={step.value}> <Text size="sm">{step.panel}</Text> </TabPanel> ))} </Tabs> <Text size="sm" tone="muted"> {last} </Text> </Stack> );}Mounting panels
mount decides when a panel’s content exists. active, the default, builds the content when its tab is selected and removes it when another tab is selected, so the state inside it is lost. lazy builds it on first selection and keeps it. eager builds every panel up front. The panel element itself is always present and hidden, so every tab’s aria-controls names an element. In Angular, write the content inside <ng-template slTabPanelContent> so the components in it are created only when mount says so; projected content is created with the page. Type a note in each example below, switch to Summary, and switch back.
import { Field, FieldLabel } from '@slotted/react/field';import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs, type TabsMount } from '@slotted/react/tabs';import { Textarea } from '@slotted/react/textarea';import { Text } from '@slotted/react/typography';const MODES: { mount: TabsMount; caption: string }[] = [ { mount: 'active', caption: 'mount="active": the note is built again, empty, on return.' }, { mount: 'lazy', caption: 'mount="lazy": the note keeps what was typed.' },];export default function TabsMountExample() { return ( <Stack gap={8}> {MODES.map((mode) => ( <Stack key={mode.mount} gap={3}> <Text size="sm" tone="muted"> {mode.caption} </Text> <Tabs defaultValue="note" mount={mode.mount}> <TabList aria-label="Order SO-1187"> <Tab value="note">Picking note</Tab> <Tab value="summary">Summary</Tab> </TabList> <TabPanel value="note"> <Field> <FieldLabel>Note for the picker</FieldLabel> <Textarea placeholder="Pack the brackets separately" rows={2} /> </Field> </TabPanel> <TabPanel value="summary"> <Text size="sm">3 lines, picked from zone C at Reno, NV.</Text> </TabPanel> </Tabs> </Stack> ))} </Stack> );}Closable tabs
dismissible adds a close button to a tab and binds Delete to the focused tab; dismissLabel names the button, such as “Close SO-1187”. onTabDismiss in React and (tabDismiss) in Angular ask the page to remove the tab: the component removes nothing itself, because the list of open tabs is the page’s data. When the closed tab was selected, the selection moves to the next tab, or to the previous one when it was last, with the reason remove.
import { useState } from 'react';import { Button } from '@slotted/react/button';import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const OPEN = [ { id: 'SO-1187', customer: 'Harbor & Pine', total: '$1,240.00' }, { id: 'SO-1188', customer: 'Brightline Studio', total: '$318.50' }, { id: 'SO-1190', customer: 'Northgate Labs', total: '$2,906.10' }, { id: 'SO-1191', customer: 'Verde Kitchen', total: '$86.00' },];export default function TabsDismissible() { const [orders, setOrders] = useState(OPEN); const [active, setActive] = useState('SO-1188'); if (orders.length === 0) { return ( <Stack gap={3} align="start"> <Text size="sm" tone="muted"> No orders open. </Text> <Button size="sm" variant="outline" onClick={() => { setOrders(OPEN); setActive('SO-1187'); }} > Reopen orders </Button> </Stack> ); } return ( <Tabs value={active} onValueChange={setActive} onTabDismiss={(value) => setOrders((open) => open.filter((order) => order.id !== value))} > <TabList aria-label="Open orders"> {orders.map((order) => ( <Tab key={order.id} dismissible dismissLabel={`Close ${order.id}`} value={order.id}> {order.id} </Tab> ))} </TabList> {orders.map((order) => ( <TabPanel key={order.id} value={order.id}> <Text size="sm"> {order.customer}, {order.total}. </Text> </TabPanel> ))} </Tabs> );}Actions beside the list
TabActions in React and slTabActions in Angular hold controls on the same row as the tabs, at its end. Put a Toolbar in it: the toolbar is one stop in the Tab sequence however many buttons it holds, so the panel stays two Tab presses from the list.
import { Button } from '@slotted/react/button';import { Glyph } from '@slotted/react/icon';import { Tab, TabActions, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Toolbar } from '@slotted/react/toolbar';import { Text } from '@slotted/react/typography';const VIEWS = [ { value: 'lines', label: 'Lines', panel: '6 lines from Quill & Co., $4,812.00.' }, { value: 'receipts', label: 'Receipts', panel: '4 of 6 lines received at Columbus, OH.' }, { value: 'history', label: 'History', panel: 'Approved by Marco Ilić on September 22.' },];export default function TabsActionsExample() { return ( <Tabs defaultValue="lines"> <TabList aria-label="Purchase order PO-4521"> {VIEWS.map((view) => ( <Tab key={view.value} value={view.value}> {view.label} </Tab> ))} </TabList> <TabActions> <Toolbar aria-label="Purchase order actions" size="sm"> <Button size="sm" start={<Glyph name="upload" />} tone="secondary" variant="ghost"> Export </Button> <Button size="sm" start={<Glyph name="copy" />} tone="secondary" variant="ghost"> Duplicate </Button> </Toolbar> </TabActions> {VIEWS.map((view) => ( <TabPanel key={view.value} value={view.value}> <Text size="sm">{view.panel}</Text> </TabPanel> ))} </Tabs> );}Links as tabs
href renders the tab as a link. A plain click selects the tab and the page does not navigate; a click with Ctrl, Cmd, Shift or Alt is left to the browser, which opens the address in a new browser tab or window. With a router, give each tab the route of its view and navigate from onValueChange.
import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const VIEWS = [ { value: 'summary', label: 'Summary', panel: 'Harbor & Pine, $1,240.00, Net 30.' }, { value: 'items', label: 'Items', panel: '3 lines: shelves, brackets and an assembly kit.' }, { value: 'shipments', label: 'Shipments', panel: 'Atlas Freight, expected September 12.' },];export default function TabsLinks() { return ( <Tabs defaultValue="summary"> <TabList aria-label="Order SO-1187"> {VIEWS.map((view) => ( <Tab key={view.value} href={`#order-${view.value}`} value={view.value}> {view.label} </Tab> ))} </TabList> {VIEWS.map((view) => ( <TabPanel key={view.value} value={view.value}> <Text size="sm">{view.panel}</Text> </TabPanel> ))} </Tabs> );}Tabs over one region
A list without panels can filter a single region, such as a table. Set controls on each tab to the region’s id, so aria-controls names it, and change what the region shows from the selected value. The counts in this example come from the same rows the table shows.
| Order | Customer | Status | Total |
|---|---|---|---|
| SO-1187 | Harbor & Pine | Open | $1,240.00 |
| SO-1188 | Brightline Studio | Shipped | $318.50 |
| SO-1190 | Northgate Labs | Open | $2,906.10 |
| SO-1191 | Verde Kitchen | Delayed | $86.00 |
| SO-1193 | Quill & Co. | Shipped | $540.25 |
import { useId, useState } from 'react';import { Badge } from '@slotted/react/badge';import { Stack } from '@slotted/react/stack';import { Table, TableBody, TableCell, TableColumnHeader, TableContent, TableHead, TableRow, TableRowHeader,} from '@slotted/react/table';import { Tab, TabList, Tabs } from '@slotted/react/tabs';const ORDERS = [ { id: 'SO-1187', customer: 'Harbor & Pine', status: 'open', total: '$1,240.00' }, { id: 'SO-1188', customer: 'Brightline Studio', status: 'shipped', total: '$318.50' }, { id: 'SO-1190', customer: 'Northgate Labs', status: 'open', total: '$2,906.10' }, { id: 'SO-1191', customer: 'Verde Kitchen', status: 'delayed', total: '$86.00' }, { id: 'SO-1193', customer: 'Quill & Co.', status: 'shipped', total: '$540.25' },];const FILTERS = [ { value: 'all', label: 'All' }, { value: 'open', label: 'Open' }, { value: 'delayed', label: 'Delayed' }, { value: 'shipped', label: 'Shipped' },];const STATUS: Record<string, string> = { open: 'Open', delayed: 'Delayed', shipped: 'Shipped' };const matching = (filter: string) => filter === 'all' ? ORDERS : ORDERS.filter((order) => order.status === filter);export default function TabsFilter() { const tableId = useId(); const [filter, setFilter] = useState('all'); return ( <Stack gap={4}> <Tabs size="sm" value={filter} onValueChange={setFilter}> <TabList aria-label="Orders by status"> {FILTERS.map((item) => ( <Tab key={item.value} controls={tableId} end={<Badge count={matching(item.value).length} showZero size="sm" />} value={item.value} > {item.label} </Tab> ))} </TabList> </Tabs> <Table columns={4} id={tableId}> <TableContent aria-label="Orders"> <TableHead> <TableRow> <TableColumnHeader>Order</TableColumnHeader> <TableColumnHeader>Customer</TableColumnHeader> <TableColumnHeader>Status</TableColumnHeader> <TableColumnHeader numeric>Total</TableColumnHeader> </TableRow> </TableHead> <TableBody> {matching(filter).map((order) => ( <TableRow key={order.id} value={order.id}> <TableRowHeader>{order.id}</TableRowHeader> <TableCell>{order.customer}</TableCell> <TableCell>{STATUS[order.status]}</TableCell> <TableCell numeric>{order.total}</TableCell> </TableRow> ))} </TableBody> </TableContent> </Table> </Stack> );}Many tabs and narrow columns
A list wider than its container scrolls instead of wrapping or cutting labels. Paging buttons appear at the ends while there is more to scroll, and the selected tab is scrolled into view, here Memphis, TN. The paging buttons are outside the Tab sequence: the arrow keys reach every tab and scroll each one into view.
import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';const WAREHOUSES = [ { code: 'RNO', city: 'Reno, NV', open: 42 }, { code: 'CMH', city: 'Columbus, OH', open: 37 }, { code: 'SAV', city: 'Savannah, GA', open: 18 }, { code: 'DFW', city: 'Dallas, TX', open: 51 }, { code: 'EWR', city: 'Newark, NJ', open: 29 }, { code: 'ONT', city: 'Ontario, CA', open: 64 }, { code: 'JOT', city: 'Joliet, IL', open: 23 }, { code: 'MEM', city: 'Memphis, TN', open: 46 }, { code: 'ABE', city: 'Allentown, PA', open: 12 }, { code: 'TIW', city: 'Tacoma, WA', open: 31 }, { code: 'SCK', city: 'Stockton, CA', open: 9 }, { code: 'IND', city: 'Indianapolis, IN', open: 27 },];export default function TabsOverflow() { return ( <Tabs defaultValue="MEM"> <TabList aria-label="Warehouses"> {WAREHOUSES.map((warehouse) => ( <Tab key={warehouse.code} value={warehouse.code}> {warehouse.city} </Tab> ))} </TabList> {WAREHOUSES.map((warehouse) => ( <TabPanel key={warehouse.code} value={warehouse.code}> <Text size="sm"> {warehouse.code}: {warehouse.open} open orders to ship today. </Text> </TabPanel> ))} </Tabs> );}Defaults for a section
TabsDefaultsProvider in React and provideTabsDefaults in Angular set activation, orientation, size, variant, track, fit, mount and loop once for every tabs component under them. A value set on one Tabs still wins, as variant="line" does on the second list.
import { Stack } from '@slotted/react/stack';import { Tab, TabList, TabPanel, Tabs, TabsDefaultsProvider } from '@slotted/react/tabs';import { Text } from '@slotted/react/typography';export default function TabsDefaults() { return ( <TabsDefaultsProvider size="sm" variant="contained"> <Stack gap={8}> <Tabs defaultValue="stock"> <TabList aria-label="Product OAK-90"> <Tab value="stock">Stock</Tab> <Tab value="pricing">Pricing</Tab> </TabList> <TabPanel value="stock"> <Text size="sm">1,284 units on hand.</Text> </TabPanel> <TabPanel value="pricing"> <Text size="sm">List price $180.00, cost $96.40.</Text> </TabPanel> </Tabs> <Tabs defaultValue="open" variant="line"> <TabList aria-label="Purchase orders"> <Tab value="open">Open</Tab> <Tab value="received">Received</Tab> </TabList> <TabPanel value="open"> <Text size="sm">3 purchase orders for OAK-90 are open.</Text> </TabPanel> <TabPanel value="received"> <Text size="sm">Last received on September 22: 400 units.</Text> </TabPanel> </Tabs> </Stack> </TabsDefaultsProvider> );}Record page header
A record page puts its identity and actions above the tabs and the record’s sections in the panels. Icons and counts make each section recognizable at a glance; the counts come from the same data the panels show.
Order SO-1187
Awaiting pickup- Customer
- Harbor & Pine
- Placed
- September 8, 2026
- Payment terms
- Net 30
- Ship to
- 88 Dock Street, Portland, OR
- Carrier
- Atlas Freight
- Total
- $1,240.00
import { Badge } from '@slotted/react/badge';import { Button } from '@slotted/react/button';import { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm,} from '@slotted/react/description-list';import { Glyph, Icon } from '@slotted/react/icon';import { Inline } from '@slotted/react/inline';import { Stack } from '@slotted/react/stack';import { Table, TableBody, TableCell, TableColumnHeader, TableContent, TableHead, TableRow, TableRowHeader,} from '@slotted/react/table';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { Heading, Text } from '@slotted/react/typography';const FACTS = [ ['Customer', 'Harbor & Pine'], ['Placed', 'September 8, 2026'], ['Payment terms', 'Net 30'], ['Ship to', '88 Dock Street, Portland, OR'], ['Carrier', 'Atlas Freight'], ['Total', '$1,240.00'],];const LINES = [ { sku: 'OAK-90', item: 'Oak shelf, 90 cm', quantity: 4, amount: '$720.00' }, { sku: 'BRK-ST', item: 'Wall bracket, steel', quantity: 8, amount: '$192.00' }, { sku: 'KIT-AS', item: 'Assembly kit', quantity: 1, amount: '$328.00' },];const ACTIVITY = [ 'Sep 9, 14:02 — Picked at Reno, NV by Luis Ortega', 'Sep 8, 16:45 — Payment approved', 'Sep 8, 16:41 — Order placed by Dana Whitfield',];export default function TabsRecordHeader() { return ( <Stack gap={6}> <Inline gap={4} align="start" justify="between" wrap="wrap"> <Stack gap={1}> <Inline gap={3} align="center"> <Heading level={2} size="xl"> Order SO-1187 </Heading> <Badge tone="warning">Awaiting pickup</Badge> </Inline> <Text size="sm" tone="muted"> Harbor & Pine · Placed September 8, 2026 </Text> </Stack> <Inline gap={2}> <Button size="sm" start={<Glyph name="file-text" />} tone="secondary" variant="outline"> Packing slip </Button> <Button size="sm">Mark shipped</Button> </Inline> </Inline> <Tabs defaultValue="overview"> <TabList aria-label="Order SO-1187"> <Tab start={ <Icon> <Glyph name="file-text" /> </Icon> } value="overview" > Overview </Tab> <Tab end={<Badge count={LINES.length} size="sm" />} start={ <Icon> <Glyph name="inbox" /> </Icon> } value="items" > Items </Tab> <Tab end={<Badge count={ACTIVITY.length} size="sm" />} start={ <Icon> <Glyph name="clock" /> </Icon> } value="activity" > Activity </Tab> </TabList> <TabPanel value="overview"> <DescriptionList columns={2}> {FACTS.map(([term, description]) => ( <DescriptionListItem key={term}> <DescriptionListTerm>{term}</DescriptionListTerm> <DescriptionListDescription>{description}</DescriptionListDescription> </DescriptionListItem> ))} </DescriptionList> </TabPanel> <TabPanel value="items"> <Table columns={4}> <TableContent aria-label="Order lines"> <TableHead> <TableRow> <TableColumnHeader>SKU</TableColumnHeader> <TableColumnHeader>Item</TableColumnHeader> <TableColumnHeader numeric>Quantity</TableColumnHeader> <TableColumnHeader numeric>Amount</TableColumnHeader> </TableRow> </TableHead> <TableBody> {LINES.map((line) => ( <TableRow key={line.sku} value={line.sku}> <TableRowHeader>{line.sku}</TableRowHeader> <TableCell>{line.item}</TableCell> <TableCell numeric>{line.quantity}</TableCell> <TableCell numeric>{line.amount}</TableCell> </TableRow> ))} </TableBody> </TableContent> </Table> </TabPanel> <TabPanel value="activity"> <Stack gap={2}> {ACTIVITY.map((entry) => ( <Text key={entry} size="sm"> {entry} </Text> ))} </Stack> </TabPanel> </Tabs> </Stack> );}Settings page
Vertical tabs list the sections of a settings page beside the open section. Each panel starts with its own heading, so the section stays named while the reader works in it.
Workspace
Printed on every invoice and packing slip.
import { Button } from '@slotted/react/button';import { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm,} from '@slotted/react/description-list';import { Field, FieldDescription, FieldLabel } from '@slotted/react/field';import { Glyph, Icon } from '@slotted/react/icon';import { Stack } from '@slotted/react/stack';import { Switch } from '@slotted/react/switch';import { Tab, TabList, TabPanel, Tabs } from '@slotted/react/tabs';import { TextField } from '@slotted/react/text-field';import { Heading, Text } from '@slotted/react/typography';const PLAN = [ ['Plan', 'Operations, annual'], ['Seats', '24 of 30 in use'], ['Next invoice', 'November 1, 2026: $4,320.00'],];export default function TabsSettings() { return ( <Tabs defaultValue="workspace" orientation="vertical"> <TabList aria-label="Settings"> <Tab start={ <Icon> <Glyph name="file-text" /> </Icon> } value="workspace" > Workspace </Tab> <Tab start={ <Icon> <Glyph name="bell" /> </Icon> } value="notifications" > Notifications </Tab> <Tab start={ <Icon> <Glyph name="lock" /> </Icon> } value="security" > Security </Tab> <Tab start={ <Icon> <Glyph name="calendar" /> </Icon> } value="billing" > Billing </Tab> </TabList> <TabPanel value="workspace"> <Stack gap={5} align="start"> <Heading level={3} size="md"> Workspace </Heading> <Field> <FieldLabel>Company name</FieldLabel> <TextField defaultValue="Northwind Traders" /> <FieldDescription>Printed on every invoice and packing slip.</FieldDescription> </Field> <Field> <FieldLabel>Support email</FieldLabel> <TextField defaultValue="support@northwind.example" type="email" /> </Field> <Button size="sm">Save changes</Button> </Stack> </TabPanel> <TabPanel value="notifications"> <Stack gap={4}> <Heading level={3} size="md"> Notifications </Heading> <Switch defaultChecked>Low stock</Switch> <Switch defaultChecked>Late pickups</Switch> <Switch>Cycle count variances</Switch> </Stack> </TabPanel> <TabPanel value="security"> <Stack gap={4}> <Heading level={3} size="md"> Security </Heading> <Switch defaultChecked>Require two-factor sign-in</Switch> <Text size="sm" tone="muted"> Changed by Dana Whitfield on August 14. </Text> </Stack> </TabPanel> <TabPanel value="billing"> <Stack gap={4}> <Heading level={3} size="md"> Billing </Heading> <DescriptionList> {PLAN.map(([term, description]) => ( <DescriptionListItem key={term}> <DescriptionListTerm>{term}</DescriptionListTerm> <DescriptionListDescription>{description}</DescriptionListDescription> </DescriptionListItem> ))} </DescriptionList> </Stack> </TabPanel> </Tabs> );}Accessibility
| Key | Effect | Focus |
|---|---|---|
| Tab | moves focus into the list | the selected tab, which is the only tab in the tab sequence |
| ArrowRight | moves to the next tab in a horizontal list and wraps at the end; activates it when activation is automatic | the tab moved to |
| ArrowLeft | moves to the previous tab in a horizontal list and wraps at the start; activates it when activation is automatic | the tab moved to |
| ArrowDown | the same as ArrowRight in a vertical list, and nothing in a horizontal one so the page keeps scrolling | the tab moved to, in a vertical list |
| ArrowUp | the same as ArrowLeft in a vertical list, and nothing in a horizontal one so the page keeps scrolling | the tab moved to, in a vertical list |
| Home | moves to the first tab that is not disabled; activates it when activation is automatic | the first enabled tab |
| End | moves to the last tab that is not disabled; activates it when activation is automatic | the last enabled tab |
| Enter | activates the focused tab | stays on the tab |
| Space | activates the focused tab | stays on the tab |
| Delete | dismisses the focused tab when it is dismissible | the following tab, the preceding one when the dismissed tab was last, or the list itself when none is left |
- Selecting a tab never waits for its panel: keep value urgent and render the region from useDeferredValue(value), which deferPanels does for the panels and useTabs().shownValue hands a region outside them. Wrapping the setter in startTransition delays the marker too.
- Tabs implements the WAI-ARIA APG Tabs pattern (w3.org/WAI/ARIA/apg/patterns/tabs/) and its whole keyboard table: Tab enters the list on the selected tab and leaves to the panel, the arrow keys of the list’s direction move focus and wrap at both ends, Home and End reach the first and last enabled tab, Enter and Space select under manual activation, and Delete closes a dismissible tab. A horizontal list does not listen for Up and Down, so those keys keep scrolling the page while focus is in the list.
- After a dismissal, focus follows the pattern: the next tab, the previous one when the closed tab was last, or the list itself when no tab is left, which is why the list carries tabindex="-1". The selection follows the same rule, with the reason remove.
- The close button is outside the arrow-key sequence and inside the accessibility tree. A screen reader reaches and presses it; from the keyboard, Delete closes the focused tab, and the tab announces the key with aria-keyshortcuts. In the arrow-key sequence, close buttons would double the presses it takes to cross the list.
- The paging controls are aria-hidden and outside the Tab sequence, because the arrow keys reach every tab and scroll it into view. Cloudscape’s guidance warns against extra Tab stops between a tab list and its panel.
- A list that starts to overflow scrolls the selected tab into view once its paging controls are drawn, so the selected tab is not left behind the end control.
- Each tab names its panel with aria-controls and each panel names its tab with aria-labelledby. The ids come from the value, with the characters an id cannot hold escaped rather than replaced, so two values that differ only by a space never share a panel.
- The selected tab is never shown by color alone: the marker is a bar never thinner than a thick border, which stays visible in the high-contrast scheme, where the theme paints every surface Canvas and the fill of the contained variant disappears.
- A panel carries tabindex="0", so the Tab key reaches it from the list. The pattern permits that stop even when the panel’s first content is focusable.
API
Tabs
Props
valuestring- The value of the selected tab. Passing it makes the selection controlled for the life of the component; without it, Tabs keeps the selection and starts from defaultValue.
defaultValuestring- The value an uncontrolled Tabs starts from, read once. When it is unset, no tab is selected and no panel is shown.
activation'automatic' | 'manual'Defaultautomatic- On Tabs, TabsDefaultsProviderWhether moving focus to a tab also selects it. The APG recommends automatic when panels show without a noticeable delay, and manual when a panel has to be fetched.
orientation'horizontal' | 'vertical'Defaulthorizontal- On Tabs, TabsDefaultsProviderWhich way the list runs, and so which arrow keys move between tabs. A horizontal list ignores Up and Down, so those keys keep scrolling the page.
size'sm' | 'md' | 'lg'Defaultmd- On Tabs, TabsDefaultsProviderThe control step of the list: height, type, padding and inner gap, all from the control scales the theme restates per density.
variant'line' | 'contained'Defaultline- On Tabs, TabsDefaultsProviderHow the list is drawn. Both variants paint the accent marker, which keeps the selected tab visible in the high-contrast scheme, where every surface is flattened.
track'line' | 'none'Defaultline- On Tabs, TabsDefaultsProviderWhether the list draws the line its tabs stand on. none is for a list placed on a line the page already draws, such as a card header’s edge or a table’s rule, where two hairlines a pixel apart read as one smudge. The marker then sits on the item’s own edge, on the line that is there.
fit'auto' | 'equal'Defaultauto- On Tabs, TabsDefaultsProviderWhether each tab is as wide as its label or takes an equal share of the line. equal cuts a label longer than its share with an ellipsis; auto never cuts a label and scrolls the list instead.
mount'active' | 'lazy' | 'eager'Defaultactive- On Tabs, TabsDefaultsProviderWhen a panel’s content exists: only while its tab is selected (active), from its first selection on (lazy), or from the start (eager). A panel that is not selected carries the hidden attribute.
deferPanelsbooleanDefault true under mount="active", false otherwise- Whether the panels render from useDeferredValue(value). The selected tab paints in the click’s frame and its panel renders after it; until it is ready the panel on screen stays, with aria-busy and data-pending. A panel that suspends keeps the shown one when its Suspense boundary is outside Tabs; a boundary inside the new panel shows its own fallback.
loopbooleanDefaulttrue- On Tabs, TabsDefaultsProviderWhether the arrow keys wrap past the ends of the list.
disabledbooleanDefaultfalse- Disables every tab with the native attribute, which also makes the arrow keys skip them, and dims the track.
value, on Tabstring- On TabWhat this tab selects, and what the value of Tabs holds. It reaches the DOM as data-value, which the keyboard reads.
disabled, on TabbooleanDefault from Tabs, or false- On TabDisables this tab only, so one tab can be unavailable in a working list. Unset rather than false, so the tab follows Tabs.
dismissiblebooleanDefaultfalse- On TabDraws the close button and binds Delete on the tab, announced through aria-keyshortcuts.
dismissLabelstring- On TabThe accessible name of the close button, required whenever it is drawn. Name what closes: “Close customers.sql” rather than “Close”.
startReactNode- On TabContent before the label, such as an Icon, placed in the start part beside the words.
endReactNode- On TabContent after the label, such as a Badge with a count, placed in the end part beside the words.
controlsstring- On TabThe id of the region this tab controls when it is not a TabPanel, such as a table the selected value filters. aria-controls names that region.
hrefstring- On TabRenders the tab as a link. A plain click selects the tab without navigating; a click with a modifier key is left to the browser, which opens the address in a new browser tab or window.
value, on TabPanelstring- On TabPanelThe tab this panel belongs to. Tabs wires the pair with ids generated from the value.
Events
| Name | Payload | When |
|---|---|---|
onValueChange | (value: string, request: ChangeRequest<string | undefined>) | Before the selection moves. The request carries the new value, the previous value (undefined while no tab is selected), the reason (pointer, keyboard, remove or programmatic), the originating event, and cancel(), which keeps the current tab. |
onTabDismiss | (value: string, request: TabsDismissRequest) | Before a tab is closed, by Delete or by its close button. The request carries the reason (pointer or keyboard) and cancel(), which stops both the dismissal and the selection move that would follow it. Tabs removes nothing itself: remove the tab from your own data. |
onClick, onKeyDown, onFocus, on each Tab | the element’s own events | When the tab’s control fires them. Your handler runs first, and preventDefault() in onClick also stops the selection. |
Composition
render(props) => ReactNode- On Tabs, TabList, Tab, TabPanel, TabActionsReplaces the root element of any of the five and passes it every attribute, so a list can be a nav and Tabs a section. The tab control itself cannot be replaced: it holds the role, the value and the keyboard, and href covers the substitution that matters.
refRef<HTMLElement>- On Tab, TabPanel, TabsOn Tab, reaches the tab’s own control, so focus() and click() are the element’s own methods and no imperative handle stands in for them.
useTabs()() => TabsContextValue- On inside TabsWhat a tab and a panel read: the value, shownValue (the value the panels render, deferred under deferPanels), the mount strategy, the ids, and select(value, reason, source) for a view the page changes on its own. A region rendered outside the panels — a page header’s tab with controls= — renders from shownValue. It throws outside Tabs instead of rendering a control that looks right and does nothing.
TabsDefaultsProvider{ activation, orientation, size, variant, track, fit, mount, loop }- On a subtreeThe eight settings an application decides once. A value set on one Tabs still wins.
aria-label, on TabListstring- On TabListThe name of the set of views. Tabs writes no name of its own; aria-labelledby works the same way.
Parts
| Part | Element | Required | Purpose |
|---|---|---|---|
root | div, or the element render returns | Yes | The Tabs root: a grid of four columns and two rows that carries data-ui="tabs", the axes (data-size, data-variant, data-track, data-orientation, data-fit), data-disabled, data-overflowing and data-activation-direction. It renders the two paging controls itself, because it observes whether the list overflows. |
list | div[role="tablist"], or the element render returns | Yes | The scroll container, and the single Tab stop of the list. Name it with aria-label or aria-labelledby: Tabs writes neither, because only the page knows what the set of views is for. |
item | div[role="presentation"], or the element the render of Tab returns | Yes | One tab and its optional close button. It exists because a button cannot contain a button, and it carries the hover bar under the tab. className and style reach it. |
tab | button[role="tab"], or a[role="tab"] with href | Yes | The control. It holds aria-selected, aria-controls, the generated id and data-value, which the keyboard reads. Every other native prop and the ref reach it. |
start | span | No | The content of start, before the label: an icon, as a flex item of the tab that never shrinks and that sizes an icon to the tab’s icon step. |
label | span | Yes | The words, in a box of their own: text-overflow cuts it when fit="equal" leaves too little room, and unicode-bidi: plaintext lets a label in another script read in its own direction. |
end | span | No | The content of end, after the label: a count or a status, as a flex item of the tab that never shrinks. |
dismiss | button | No | The close button. It has tabindex="-1", so the arrow keys move between tabs only, and it stays in the accessibility tree, so a screen reader can press it. From the keyboard, Delete closes the focused tab, which aria-keyshortcuts on the tab announces. |
marker | span, aria-hidden | No | The bar under the selected tab. The list draws one and slides it between tabs; it spans the tab’s content box, never the close button. --slotted-tabs-marker-size, --slotted-tabs-marker-radius, --slotted-tabs-marker-inset and --slotted-tabs-marker-offset (1px above the list’s edge) shape it, and the hover bar takes the same geometry at --slotted-tabs-hover-marker-opacity. |
panel | div[role="tabpanel"] | Yes | The content of one tab, with aria-labelledby pointing at its tab and tabindex="0". It carries the hidden attribute while another tab is selected. The panel element always exists, so every tab’s aria-controls names an element; mount decides whether its content exists. |
scroll | button | No | One paging control at each end, drawn only while the list overflows. It is aria-hidden and outside the Tab sequence, because the arrow keys reach every tab and scroll it into view. |
actions | div, or the element render returns | No | A slot at the end of the tab row, for controls that act on what the tabs show. Put a Toolbar in it: one Tab stop however many buttons it holds. |
Theming
Each token is a CSS custom property: set it in a theme, or on any element to retune every tabs inside it.
Tabs tokens
| Token | Default |
|---|---|
--slotted-tabs-actions-gap | var(--slotted-space-4, 0.5rem) |
--slotted-tabs-active-background | var(--slotted-tone-secondary-subtle-active) |
--slotted-tabs-active-marker-color | var(--slotted-text) |
--slotted-tabs-color | var(--slotted-text-muted, GrayText) |
--slotted-tabs-contained-background | var(--slotted-surface-sunken) |
--slotted-tabs-contained-selected-background | var(--slotted-surface) |
--slotted-tabs-dismiss-active-background | var(--slotted-tone-secondary-subtle-active) |
--slotted-tabs-dismiss-active-color | var(--slotted-text, CanvasText) |
--slotted-tabs-dismiss-color | var(--slotted-text-muted, GrayText) |
--slotted-tabs-dismiss-hover-background | var(--slotted-tone-secondary-subtle-hover) |
--slotted-tabs-dismiss-hover-color | var(--slotted-text, CanvasText) |
--slotted-tabs-fade-size | var(--slotted-space-6, 1rem) |
--slotted-tabs-gap | var(--slotted-space-6, 1rem) |
--slotted-tabs-hover-background | var(--slotted-tone-secondary-subtle-hover) |
--slotted-tabs-hover-color | var(--slotted-text, CanvasText) |
--slotted-tabs-hover-marker-color | var(--slotted-border-strong) |
--slotted-tabs-hover-marker-opacity | 0.5 |
--slotted-tabs-list-gap | var(--_list-gap) |
--slotted-tabs-marker-color | var(--slotted-tone-accent-solid) |
--slotted-tabs-marker-easing | cubic-bezier(0.4, 0, 0.2, 1) |
--slotted-tabs-marker-inset | var(--_padding-inline) |
--slotted-tabs-marker-offset | 1px |
--slotted-tabs-marker-radius | var(--slotted-radius-full, 9999px) |
--slotted-tabs-marker-size | 3px |
--slotted-tabs-scroll-color | var(--slotted-text-muted, GrayText) |
--slotted-tabs-selected-color | var(--slotted-tone-accent-text) |
--slotted-tabs-track-color | var(--slotted-border-subtle, ButtonBorder) |
Theme tokens it reads
| Token | Default |
|---|---|
--slotted-border-strong | Set per scheme by the theme |
--slotted-border-subtle | Set per scheme by the theme |
--slotted-border-width-thick | 2px |
--slotted-border-width-thin | 1px |
--slotted-control-font-family | var(--slotted-font-family-sans) |
--slotted-control-font-size-lg | comfortable 14px · compact 13px · dense 12px |
--slotted-control-font-size-md | comfortable 13px · compact 12px · dense 12px |
--slotted-control-font-size-sm | comfortable 12px · compact 12px · dense 12px |
--slotted-control-font-weight | var(--slotted-font-weight-semibold) |
--slotted-control-gap-lg | comfortable 8px · compact 6px · dense 6px |
--slotted-control-gap-md | comfortable 8px · compact 6px · dense 4px |
--slotted-control-gap-sm | comfortable 6px · compact 4px · dense 4px |
--slotted-control-height-lg | comfortable 38px · compact 32px · dense 30px |
--slotted-control-height-md | comfortable 34px · compact 28px · dense 26px |
--slotted-control-height-sm | comfortable 30px · compact 26px · dense 24px |
--slotted-control-icon-size-lg | comfortable 18px · compact 16px · dense 14px |
--slotted-control-icon-size-md | comfortable 16px · compact 14px · dense 13px |
--slotted-control-icon-size-sm | comfortable 14px · compact 13px · dense 12px |
--slotted-control-inner-size-lg | comfortable 28px · compact 24px · dense 22px |
--slotted-control-inner-size-md | comfortable 24px · compact 20px · dense 18px |
--slotted-control-inner-size-sm | comfortable 22px · compact 18px · dense 16px |
--slotted-control-letter-spacing | 0 |
--slotted-control-line-height | 1 |
--slotted-control-padding-inline-lg | comfortable 16px · compact 12px · dense 10px |
--slotted-control-padding-inline-md | comfortable 13px · compact 10px · dense 8px |
--slotted-control-padding-inline-sm | comfortable 10px · compact 8px · dense 6px |
--slotted-control-radius | var(--slotted-radius-sm) |
--slotted-control-transition-duration | var(--slotted-duration-short) |
--slotted-control-transition-easing | var(--slotted-easing-standard) |
--slotted-disabled-background | Set per scheme by the theme |
--slotted-disabled-border | Set per scheme by the theme |
--slotted-disabled-foreground | Set per scheme by the theme |
--slotted-duration-medium | 200ms |
--slotted-duration-short | 120ms |
--slotted-easing-enter | cubic-bezier(0.05, 0.7, 0.1, 1) |
--slotted-focus-ring-color | Set per scheme by the theme |
--slotted-focus-ring-offset | var(--slotted-border-width-thick) |
--slotted-focus-ring-width | var(--slotted-border-width-thick) |
--slotted-radius-full | 9999px |
--slotted-radius-md | 6px |
--slotted-radius-sm | 4px |
--slotted-shadow-xs | Set per scheme by the theme |
--slotted-space-1 | 0.125rem |
--slotted-space-2 | 0.25rem |
--slotted-space-4 | 0.5rem |
--slotted-space-6 | 1rem |
--slotted-surface | Set per scheme by the theme |
--slotted-surface-sunken | Set per scheme by the theme |
--slotted-target-comfortable | 44px |
--slotted-target-min | 24px |
--slotted-text | Set per scheme by the theme |
--slotted-text-muted | Set per scheme by the theme |
--slotted-tone-accent-solid | Set per scheme by the theme |
--slotted-tone-accent-text | Set per scheme by the theme |
--slotted-tone-secondary-subtle-active | Set per scheme by the theme |
--slotted-tone-secondary-subtle-hover | Set per scheme by the theme |