Components
The 46 components of @effect/ui-kit. Each page has live examples, the code they run and the styles to copy.
AccordionA set of panels, each under a heading with a button that shows and hides it.AlertDialogA modal dialog that interrupts the user for a decision and can't be dismissed by a press outside.AutocompleteAn input that suggests completions as you type, and keeps whatever text you enter.AvatarA user's picture with a fallback, such as initials or an icon, while it loads or if it fails.ButtonA native button that can stay focusable while disabled.CalendarA controlled month grid for picking one date, with full keyboard navigation.CheckboxA controlled checkbox with a mixed state and a form value.CheckboxGroupShares one list of ticked values among the checkboxes inside it, with an optional parent checkbox.CollapsibleA panel that a button shows and hides.ComboboxAn input that filters a list of options as you type, and picks one or more of them.ContextMenuA menu that opens at the pointer on a right click, or after a long press on a touch screen.DateFieldA text input that formats and parses a calendar date for a locale and commits it on blur or Enter.DatePickerA typed date input with a calendar popup, built on DateField and Calendar.DialogA popup in the top layer that asks for the user's attention, with focus, dismissal and nesting handled.DirectionProviderTells the components inside it which way the text runs, so the keys that follow the reading direction go the right way.DrawerA panel that slides in from an edge of the screen and is swiped away, with snap points and nesting.FieldGroups a control with its label, description and error, and reports whether it is invalid, touched or focused on each of them.FieldsetGroups several fields under one legend, and disables all of them at once.FileDropA drop zone and a file-picker button that share one accept and multiple filter.FormA form that moves focus to its first invalid control after a submit.InputA native text input whose value lives in your Model.MenuA button that opens a list of actions, links, checkbox and radio items, and submenus.MenubarA row of menus, such as File, Edit and View, that the arrow keys move through as one control.MeterA measurement within a known range, such as disk usage or a battery level.NavigationMenuA navigation landmark with a list of links, where the link to the page being shown is marked as current.NumberFieldA controlled input for a number, with stepper buttons, locale formatting and an area to drag across.OTPFieldA row of one-character inputs for a verification code, which move focus as you type and take a pasted code whole.PopoverA popup anchored to its trigger for content the user asks for, opened by a press or by hover.PositioningPlaces a popup against an anchor, keeps it inside a boundary, and reports where it ended up: for a popup the kit doesn't have.PreviewCardA card that previews what a link leads to while the link is hovered or focused.ProgressA progress bar for a task that takes a while, whose value lives in your Model.RadioGroupA controlled group of radio buttons with roving focus and arrow-key picking.RangeCalendarA controlled month grid for picking a start and an end date, with a live preview of the range.ScrollAreaA native scroll container with custom scrollbars, overflow state and edge-fade CSS variables.SelectA button that opens a list of options and shows the selected one.SeparatorA horizontal or vertical divider between sections of content.SliderA controlled slider with one thumb or several, dragged or moved with the keyboard.SwitchA control that turns a setting on or off.TabsA list of tabs, each showing one panel while it is active.ToastA stack of short notifications that any component below the provider posts to, and that leave on their own.ToggleA two-state button that is pressed or not.ToggleGroupA row of toggle buttons that share one value, with one tab stop and arrow-key focus.ToolbarA row or column of controls that takes one stop in the Tab order and moves focus with the arrow keys.TooltipA short visual label shown while its trigger is hovered or focused with the keyboard.VirtualKeyboardTells where the software keyboard leaves the page visible, so content fixed to the bottom of the screen can sit above it.VirtualListA list that renders only the items near the visible part of its scroll container, and leaves room for the rest.