Adds friction to risky actions in two modes. Slide: drag a round knob along a pill track that fills behind it; letting go before 90% springs it back, reaching the end locks it with a check and a green track. Hold: press and hold a button whose background fills over a set time and drains back at double speed if released early. A tick ruler under both lights segment by segment. onConfirm may return a promise, which shows a spinner until it settles and then success or an inline error with Retry. An optional Undo appears for a set window, after which it resets or stays done. The slider works with arrow keys, End or Enter and Escape, the hold button with Space or Enter, touch works through pointer capture, the result is announced, and reduced motion swaps the spring for a snap.
Components
Components
Button set
FreeA Button with six variants (primary, secondary, outline, ghost, destructive, link) and four sizes including a square icon size. The loading state shows a spinner without changing the button's width, keeps focus on the button and sets aria-busy. Exports buttonVariants so links can share the same styles.
Dropdown menu
FreeA menu button following the ARIA menu pattern: arrow keys with wrap-around, Home and End, typeahead, Escape to close and return focus, Tab to leave, and click-outside to dismiss. Composable parts for groups with labels, separators, icons, keyboard shortcut hints with aria-keyshortcuts, disabled and destructive items, and checkbox items that stay open while toggling.
Drop-off funnel
FreeA conversion funnel of horizontal stages whose widths shrink with their value, joined by curved bridges so it reads as one flowing shape filled with a gradient from the theme's chart colours. Each stage shows its label, count and share of the first stage, and a chip between stages shows the loss. The largest drop is found automatically and marked in the destructive tone. An optional earlier period draws as a dashed ghost shape with up or down deltas per stage. Stages grow in when scrolled into view, it can lay out horizontally on wide containers, labels move above the bars on phones, and every number is available as text for screen readers.
Bulk action bar
FreeA floating toolbar that rises from the bottom (or top) of a list when items are selected and sinks away when the selection clears. It shows a rolling selected count, a basket of removable chips with a '+N' overflow that opens a scrollable list, action buttons and Clear. Destructive actions confirm inline ('Delete 6? Yes / No', focus on No) without a modal, and a finished action leaves an Undo pill in the same bar for a few seconds. Ships a useSelection hook with toggle, shift-click ranges, select all, clear and isSelected. Set a threshold, place it inside the parent or float it over the page; Escape clears, count changes are announced politely and focus is never taken when the bar appears.
Keycap button
FreeButtons that feel like physical keys, in three materials behind one API: raised keycaps on a darker base edge that sink when pressed, soft keys lifted out of the surface by a light and a dark shadow that turn inward on press, and inset keys carved into the panel that press deeper. Primary, neutral and destructive tones mix their shadows from theme tokens, so dark mode works. Keys can print a tiny corner legend such as a shortcut letter, and a latched mode turns any key into a toggle that rests half-pressed while on. Space and Enter show the same press as the pointer, icon keys warn in the console when they lack a label, and the sink movement is dropped under reduced motion.
