0.20.0
Spotlight ⌘K search, media and file components, swappable icons, and an a11y and i18n pass
Spotlight brings a ⌘K omni search with drill-down paths, scopes and streaming sources. A media set arrives alongside it: Image, AspectRatio, Figure, Gallery, Lightbox, Carousel, Compare, ImageCropper, Camera and PhotoCapture. Files get FileTrigger, FileItem, DownloadButton, FilePreview and the network-free useFileQueue. Every built-in icon can be swapped through an icons map and is drawn at a true 1.5px stroke. Schedule, DataTable, pickers and status components went through an accessibility and locale pass. Tabs moves to underline and enclosed indicators, and new public hooks include useHotkey, useInView, useElementSize and useDebouncedValue.
Spotlight
Search everything from one box
createSpotlight({ sources, navigate }) searches every source in parallel, each with its own debounce, and streams in results as they arrive. Type a source's prefix to scope the search, press Tab on a row to search inside it, and pick up where you left off from recents. Items carry a link typed against your router's navigate.
From a thumbnail to full screen
Wrap a Gallery in a Lightbox and every tile opens the viewer: the photo grows out of its thumbnail and shrinks back into the tile you end on. Swipe between photos, drag down to dismiss, and pinch, double-tap or ⌘-scroll to zoom.
Uploads, without the plumbing
Pass queue={useFileQueue({ upload })} and FileUpload sends what's picked through your own transport, with per-row progress, Retry and cancel. When the run ends, screen readers hear one summary, not one message per file.
Drop files here or click to browse
Changes
10 breaking changes
- Tabs:
The
filled,light,outline,subtleanddefaultvariants are replaced byunderline(the new default) andenclosedon a full-width baseline; useSegmentGroupfor the pill look - CodeBlock:
CodeBlockandCodeBlock.StaticreplacecopyIcon,copiedIcon,expandIconandcollapseIconwith oneicons={{ copy, copied, expand, collapse }}map;nullstill leaves a button iconless - Slider:
labelis now the field label that names the slider, like every other input; the floating bubble moves tothumbLabel, andshowLabelbecomesshowThumbLabel(the old name still works for now)
1removed
61added
26changed
34fixed
- breaking10
- Tabs#378
The
filled,light,outline,subtleanddefaultvariants are replaced byunderline(the new default) andenclosedon a full-width baseline; useSegmentGroupfor the pill look - CodeBlock#361
CodeBlockandCodeBlock.StaticreplacecopyIcon,copiedIcon,expandIconandcollapseIconwith oneicons={{ copy, copied, expand, collapse }}map;nullstill leaves a button iconless - Slider#379
labelis now the field label that names the slider, like every other input; the floating bubble moves tothumbLabel, andshowLabelbecomesshowThumbLabel(the old name still works for now) - Alert#376
withCloseButtonnow requiresonClose; omitting it is a type error - Drawer#383
Drawer parts live on the namespace only:
DrawerTitle,DrawerHeaderand the other flat exports becomeDrawer.Title,Drawer.Header… - Schedule#381
translations.eventCountis now(count) => stringand reads "1 event" correctly; a"{count}"string still works for one minor with a deprecation warning - Schedule#386
timeLabel(date, timeZone, locale)→timeLabel(date, { timeZone, locale })anddurationLabel(start, end, locale)→durationLabel(start, end, { locale })(exported asScheduleFormatOptions) - Spinner#388
Spinner renders a
<span role="status">instead of an<svg role="img">, so its props are span props andclassName/testId/rest land on the root; it stops spinning under reduced motion - DataTable#406
A date column's
meta.filter.translations.clearis renamedclearDates - SelectMultiSelectComboboxList#407
renderItem'sitem.payloadis typedPayload | undefined, as it always was at runtime for strings and payload-less items: guard it withitem.payload?.x - removed1
- File Upload#358
onDropis removed — it never ran; filter withaccept,maxFilesandmaxFileSizeand read what they turn away inonReject - added61
- Spotlight#340
New
Spotlight⌘K omni search:createSpotlight({ sources, navigate })returns a controller (open,close,toggle,setQuery,refresh,loadMore) plus<SpotlightProvider />,useSpotlight,useSpotlightSourceand<SpotlightSources>; sources search in parallel with their own debounce, can stream from anasync function*, and fail alone with a retry row - Spotlight#340
Items take a typed
linkchecked against your router'snavigateparameter, or anonSelect; ↵ navigates, ⌘↵ opens a new tab, andstaticSource({ id, label, items })filters commands client-side ignoring case and diacritics - Spotlight#343
The default menu opens on
hotkey(mod+k), keeps recents (recents: { limit, storageKey }orfalse), highlights matches and supports RTL;Spotlight.Root/Input/List/Group/Item/Empty/Footercompose a custom layout, andtranslations,placeholderandiconsreword and restyle it - Spotlight#346
Drill-down: a source's
within(item)returns the sources to search inside an item; Tab or›pushes a chip, Backspace or Esc pops one, andspotlight.open({ path }),setPath,push,pop,useSpotlightPathand<SpotlightPath>set the path from code - Spotlight#352
Scope a search by typing a source's
prefix(@,#…) or picking a "Search in" row (scopes: falsehides them); scoped sources page in as you scroll by followingnextCursor - Spotlight#414
Loading never flashes: pending and streaming groups end in skeleton rows, stale rows dim, the list height eases; an empty scope shows
Spotlight.Promptwith the source'shintand recents, and no results showsicons.emptyand a hint - SpotlightKbd#410
The footer draws its hints as
<Kbd hotkey>caps with terse labels, translated throughtranslations.kbd - Image#345
New
Image: an<img>that fades in once decoded over a color, blurreddata:or skeleton placeholder painted in the SSR HTML, with a CDNloaderthat buildssrcset,priority,fallbackSrc, a requiredalt,ratio,radius, RTL-awarepositionandonStatusChange - Kit#345
Ratio,ratioStyleandratioToNumberare exported, to size your own boxes like the media components - AspectRatio#347
New
AspectRatio: a Server Component box with a fixedratiothat crops video, iframes or layered content, withradiusandasChild - Figure#347
New
Figurewith acaptionorFigure.Captionplacedbottom,toporoverlay(a readable scrim over the photo); a Server Component that sizes to its media - Gallery#349
New
Galleryingrid,masonryorjustifiedlayout computed in CSS from each item'swidth/height, with captions,spacing,radius,loaderandrenderItem; wrap it in aLightboxand every tile opens the viewer - Gallery#351
Gallery adapts to its own width: justified rows shrink when narrow, masonry
columnstakes a breakpoint map ({ base: 2, md: 3 }) or fits frommin, and keyboard focus stays on its tile as columns change - Lightbox#354
New
Lightboxviewer that grows out of the clicked thumbnail and shrinks back into the tile you end on: swipe, drag down to dismiss, pinch, double-tap or ⌘-scroll to zoom, ← → mirrored in RTL; use<Lightbox data>or composeTrigger,Thumbnails,Caption,Downloadand more, with aniconsmap - Carousel#357
New
CarouselwithslidesPerPage,paddingpeek, mouse drag, roving indicators andautoplaythat holds on hover and focus and stops under reduced motion;icons, composable parts, and slides that open in aLightboxscrolling back to where you close - Compare#356
New
Comparebefore/after slider (before,after,value/defaultValue/onChange,step,ratio) on a native range input — drag, touch, keyboard, screen readers and RTL - ImageCropper#355
New
ImageCropperwith aratioorshape="circle", a grid while dragging, andwithControlsfor zoom, rotate, flip and reset (glyphs swappable throughicons);getCroppedImage()exports at exactly the locked ratio - Camera#359
New
Cameraparts and headlessuseCamera():Viewfinder,Guide(circle or document cut-out),Shutter,Flip,DevicesandStatuscover denied, blocked, busy and missing cameras with per-browser recovery steps;onCapturehands you aFile - PhotoCapture#364
New
PhotoCapture: take or pick a photo, crop it, and get aFileinonChangeon "Use photo";shape,ratio,output={{ type, quality, size }}, and the phone's camera app on touch devices (camera="auto") - FileTrigger#358
New
FileTrigger: a button, or any element throughasChild, that opens the file picker and callsonSelect(files), withaccept,multipleandcapture; picking the same file twice fires twice - File Item#366
New
FileItem: one row for a pickedFileor a stored document — thumbnail or kind icon, size, date, uploadstatus/progress,onRetry,onRemove/onCancel, polite announcements and composable parts; thumbnails render only for allowlisted types - File Item#366
formatFileSize(bytes, locale?)andfileKind(type, name)are exported - DownloadButton#368
New
DownloadButton:datais a Blob, a URL or({ signal }) => Promise<Blob | string>; it keeps focus with a spinner while pending, ignores repeat clicks, announces failures, and takesonDone/onError/asChild.saveFile(data, name)does it without a button - FilePreview#371
New
FilePreviewshows a PDF, image, video, audio or text file with the browser's own viewers fromfile,srcor an asyncdataloader, with Open and Download actions; only allowlisted types render, so an uploaded HTML or SVG never runs as your app.openFile(source)opens one in a tab under the same rules - Hooks#367
useFileQueue({ upload, concurrency, batch, autoStart, retryable, onSettled }): a network-free upload queue — you supply the transport; it handles progress, cancel, retry,retryFailed,resetand batches, andFileQueueSummarymakes one polite announcement per run - File Upload#367
queue={useFileQueue(…)}uploads what's picked with per-row progress, Retry, cancel and one summary announcement (translations.summary) - File Upload#358
onReject(rejections)reports whataccept,maxFilesormaxFileSizeturned away, andcaptureopens the phone camera - File Upload#365
A rejected file shows why in the error slot ("report.pdf is too large (12.4 MB, max 1 MB)"), reworded through
translations.rejectedandmoreRejected; anerroryou pass still wins - File Upload#365
validate,minFileSize,preventDocumentDrop(on by default),color,thumbnails,iconsandtranslations.hint/buttonHint; sizes format in theIntlProviderlocale - DataTableScheduleNumber Input#361
Swap any built-in icon through an
iconsmap —icons={{ asc, desc }}on DataTable,icons={{ show, hide }}on PasswordInput; a key you leave out keeps the kit's icon, and a part'schildrenstill win - CalendarDatePicker#385
icons={{ prev, next }}replaces the navigation chevrons in every view, passed through by DatePicker; a custom icon is no longer flipped under RTL - Menu#385
icons={{ check, radio, submenu }}onMenu.Rootor the data-drivenMenureplaces the indicators and submenu chevron, carried into submenus - Schedule#360
Schedule.Toolbar.PrevTriggerandNextTriggertakechildrento replace their arrow - Tabs#378
Give one tab its own palette with
coloronTabs.Triggeror adataitem; the underline recolors as it slides - Motion#342
Motion tokens:
ease-standard,ease-emphasized,ease-decelerate,ease-accelerate,ease-anticipate,ease-overshoot,ease-springandease-spring-overshoot, plus--duration-instantto--duration-spring, each spring with a--duration-spring-settle - Hooks#396
useHotkey(keys, handler, options)binds a chord like"mod+k"(⌘ on Apple, Ctrl elsewhere) or an array, and decides when it fires:inputs,scope+hover,layer(yields under an open overlay),repeat,event: "keyup"andwhen - KbdHooks#401
<Kbd hotkey="mod+k" />draws auseHotkeystring for the visitor's platform as one key cap per key with icons and spoken names;formatHotkey()andhotkeyKeys()return the same keys as text - Kbd#410
translationson<Kbd hotkey>replaces the words its caps show and speak ("Strg", "Flèche haut"), merged per key ontoKBD_DEFAULT_TRANSLATIONS - Hooks#342
useReducedMotion()follows the reduced-motion setting live,falseon the server - Hooks#349
OpenIndexProvider,useOpenIndexanduseOpenIndexTrigger(index, reveal?)let any element open a viewer at an index, the way Gallery tiles and Carousel slides open Lightbox - Hooks#355
useObjectUrl(blob)returns an object URL for aBloborFile, revoked when it changes or unmounts, and only for allowlisted types - Hooks#394
useApplePlatform,useMergedRefsanduseNoware public (withisApplePlatform,mergeRefs,isNowPending), and the newuseHydrated()isfalseon the server and during hydration - Hooks#397
useDebouncedValue(value, delay)anduseDebouncedCallback(fn, delay): SSR-safe trailing debounces that drop a pending call on unmount - Hooks#398
useDocumentVisibility()returns"visible"or"hidden"live ("visible"on the server) - Hooks#399
useInView(ref, { root, margin, threshold, once })wraps IntersectionObserver,undefineduntil observed so a reveal never hides server content - Hooks#402
useElementSize(ref, { box, enabled })gives an element's live width and height through ResizeObserver,undefineduntil measured - Schedule#400
Create events from the keyboard: with
editablegranting"create", the timed grid gets a slot cursor — arrows move, Shift extends, Enter creates, Alt+Enter creates one per day, Esc clears (classNames.slotCursor) - Schedule#400
Keyboard moves, resizes and refused steps are announced ("Standup moved to Friday, January 16, 2026, 9:00 – 9:30 AM"), with new
translationskeyseventMoved,eventResized,eventChangeRejected,moveHint,resizeHint,dayUnavailable,resizeStartandresizeEnd - Drawer#403
Composed drawers state their edge once:
Drawer.Root placementdocksDrawer.Positionerand sets the swipe direction, and the newDrawer.Contenttakessizeandradius - Drawer#403
The ready-made
<Drawer>takesrole="alertdialog"andradius, like Modal - DrawerModalAppShell#383
Drawer, Modal and
AppShell.Sidebaracceptaria-label/aria-labelledby, and development warns when an open dialog has no accessible name - Indicator#392
A numeric
labeland itsmaxValuecap format withIntl.NumberFormatfor the newlocaleprop (1 234,٩٩+); pass the same locale asIntlProvider, since Indicator stays a Server Component - Indicator#388
altgives the dot a text alternative read with its children ("Inbox 3 unread messages") - Timeline#388
Completed and upcoming steps are announced, not only colored, with
translations.complete/pending - Chart#388
The root accepts
role,aria-label,aria-labelledbyandaria-describedby, for a chart in a captionedFigure - DataTable#391
getRowLabel(row, index)names each row's select checkbox; the default is now its 1-based position ("Select row 1"), not the internal row id - DataTable#406
translations.fromTime,toTimeandclearDatesreach the date filters, andpagewords the rows-mode page tooltip - AlertNotification#376
Alert's close label translates through
translations.closeTriggerLabel, and Notification's close and collapse labels read fromtranslations - Pin InputRadioGroup#379
PinInput's cell names translate through
translations, and RadioGroup acceptsaria-label/aria-labelledby - Focus#391
focusStylesgains"has-focus-visible","peer-has-focus-visible"and"peer-focus-visible"sources for rings on wrappers and overlays, andoutline: truedraws the ring over positioned content - #390
- changed26
- Kit#363
Every icon the kit draws has a true 1.5px line at every size;
iconStrokeis exported so your own icons match, and an icon you pass throughiconsis drawn as given - Colors#380
Neutral text, borders and fills use the Figma kit's navy and black/white primitives instead of the gray scales, so body text and hairlines shift slightly;
--color-gray-*stays defined for your own use - FieldInputCheckbox#390
Error states follow Figma: error text is red-900 in light and red-500 in dark, invalid fields drop the red wash and keep the red border
- File Upload#366
The file list is drawn with
FileItem - Schedule#353
The timed grid opens scrolled to the current hour in the schedule's
timeZone; aselectedevent still wins - Schedule#400
Month and Year are keyboard grids with one tab stop: arrows, Home/End and PageUp/PageDown move, Enter/Space fires
onDayClick, and cells carry the full date - Schedule#400
Toolbar.PrevTrigger/NextTriggertakeActionIconprops andNowTriggertakesButtonprops, andToolbar.Titleannounces the new period - Schedule#400
withSelectionis renamedselectable; the old name warns once until the next minor - Indicator#390
showZerois renamedhideZero(inverted); the old prop warns once until the next minor - AmbientBackground#390
glow/noiseare renamedwithGlow/withNoise; the old names work until the next minor - Menu#390
startSection/endSectionare renamedstartSlot/endSlot, andMenu.TriggertakestestId; the old names work until the next minor - Calendar#390
renderDay's context readsunavailable/selected(CalendarDayState);isUnavailable/isSelectedstill work but warn - Accordion#385
Swap the chevron through
icons={{ chevron }}; the flatchevronprop is deprecated - Rating#385
Swap the stars through
icons={{ full, empty }};fullSymbol/emptySymbolare deprecated - Flex#375
justify="stretch"is the correct spelling and the default;"strech"stays as a deprecated alias - AutocompleteComboboxListMultiComboboxList#387
Search ignores accents and case the way the locale does: "ele" finds "Éléphant", and Turkish İ/ı match
- TreeSelectTreeMultiSelect#404
Tree search ignores accents and case per locale, like the flat pickers
- TreeMultiSelect#382
Rows support type-ahead and announce their position in the tree, like TreeSelect
- TreeMultiSelectMultiSelect#382
Each pill's remove button is named after its value ("Remove lexer.c")
- MultiSelectTagsInputTreeMultiSelect#387
The "+N" counter uses the locale's digits and reads a pluralised "3 more items" through
translations.overflowCount; PillsInput gainstranslations - DataTable#387
Pagination formats page numbers, sizes and ranges for the locale, and
translations.itemsreceivesformatted: { hits, from, to } - DatePicker#387
presets={true}labels come fromIntl.RelativeTimeFormat("Aujourd’hui"), so only "All time" needs atranslations.presetskey - AppShell#389
The mobile drawer closes when a link inside is followed,
SidebarTriggerexposesaria-expanded/aria-controls, anduseAppShell()returnsmobileOpen,setMobileOpen,isMobileandsidebarId - Tooltip#389
The default trigger is a
<button>(it was a focusable<span>); useasChildwhen the tooltip wraps a control - Table#391
The scroll area is focusable with a visible ring, and a named region when
Table.Contenthasaria-label/aria-labelledby - ModalDrawer#396
An open Modal or Drawer is a hotkey layer: hotkeys under it go quiet, and a Popover it was opened from stays open
- fixed34
- Button#370
loadingno longer changes the button's width or moves its label: the spinner fades into the icon's place or over the label, at full contrast - File Upload#365
The dropzone is named by its
label, described by its error, and keeps focus when the first error appears - File Upload#373
An uploaded SVG thumbnail opened in a new tab can no longer run script as your app
- ProgressCircular Progress#388
aria-label,aria-labelledby,aria-describedbyandaria-valuetextland on the progressbar itself - Overlays manager#374
overlays.update(id, { title })keeps the overlay's content, and opening one while another closes no longer strands an entry inuseOverlays() - Time InputDatePicker#375
hourCycle="h11"and"h24"show 0–11 and 1–24, and DatePicker accepts a typed24:30under h24; TimeRow fields keep their width in a narrow row - Number Input#375
An uncontrolled NumberInput disables increment at
maxand decrement atmin - NotifierNotification#376
Toasts are announced — errors as
alert, others as politestatus— and auto-dismiss pauses while focus is in the stack - Notification#398
Notifications mounted in a background tab hold their timers, so toasts no longer expire unseen
- Tabs#378
The active tab is marked in the server HTML before hydration
- TabsSegment Group#389
The sliding indicator holds still under reduced motion, and a consumer
classNameoverrides the part's own utilities - RadioGroupChoice Card GroupPin Input#379
Grouped controls in a field are named by its
labeland described bydescription/error, and a Checkbox'serroris announced - Slider#355
Focus stays on the thumb after an arrow-key step
- Modal#383
classNames.positionercan override the positioner'soverflow-clip - Schedule#381
Day headers follow
timeZone, overlapping events and the details popover mirror in RTL, and Month and Year follow a pinnednow - Schedule#386
The details popover is named after the event everywhere, clicking inside a Month event's panel no longer jumps to Days, and a multi-selection of all-day bars opens one popover
- Schedule#386
A rejected drag no longer pulses under reduced motion, and its readout reaches 5.9:1 contrast
- Schedule#400
Day headers are buttons only with
onDayClick, a disabled day says "unavailable", and the view switcher no longer pointsaria-controlsat missing panels - SelectNumber InputSegment Group#384
A callback
refis no longer detached and re-attached on every render - DataTable#360
Pagination chevrons point the right way in RTL
- DataTable#391
Column resizing follows RTL, the grip uses the kit's focus ring,
titlenames the table and its scroll region, and the error row stays a table cell - DataTable#406
In
paginationMode="rows", the range indicator is named by its range and the live region leaves the button - Avatar#387
Initials split by grapheme and upper-case for the locale ("😀 smile" →
😀S, Turkishi→İ), and an initials or failed-image avatar is an image named afteralt/name - Divider#388
A label is readable (≈1.5:1 → 5.5:1) and read by screen readers
- #388
- NavLink#389
A
disabledlink drops itshrefand leaves the tab order,Navigationrenders a real list, toggles carryaria-controls, andtestIdis accepted - Breadcrumb#389
A Home crumb without an
hrefrenders as a named image, not a dead link - TagsInputMultiSelect#391
With
maxLines, overflowing tags stay reachable and all show on focus, and the cap no longer hides every pill under RTL - Pill#391
Each remove button is named after its pill ("Remove C++"), and
PillGrouptakestestId - PillPillsInputMultiSelect#408
Pill labels no longer clip descenders and accents ("qwik" read as "awik")
- Switch#391
With a
descriptionorerror, the input no longer pointsaria-labelledbyat a missing label - Kbd#401
A single character or lone icon is a square cap at every size
- Mark#344
Highlights show in both themes: no fade to white in light mode, and
color="brand"stays visible on dark surfaces - Kit#413
Kit dev warnings no longer log in production builds