GitHub

Components

Browse every SUI component, listed alphabetically.

Every preview runs the components in this workspace. Choose a component to find its import, composition, examples, and API.

AccordionA vertically stacked set of interactive headings that each reveal a section of content.AlertDisplays a callout for user attention.Alert DialogA modal dialog that interrupts the user with important content and expects a response.Aspect RatioDisplays content within a desired ratio.AvatarAn image element with a fallback for representing the user.BadgeDisplays a badge or a component that looks like a badge.Bottom SheetA bottom sheet with default and lg sizes, drag gestures, keyboard handling and optional glass material.BreadcrumbDisplays the path to the current resource using a hierarchy of links.ButtonDisplays a button or a component that looks like a button.Button GroupA container that groups related buttons together with consistent styling.CalendarA calendar component that allows users to select a date or a range of dates.CardDisplays a card with header, content, and footer.CarouselA carousel with motion and swipe built using Embla.CheckboxA control that allows the user to toggle between checked and not checked.Code EditorA client-loaded Monaco code editor whose toolbar features are plugins.CollapsibleAn interactive component which expands/collapses a panel.Color PickerChoose colors using a saturation area, hue and opacity sliders, editable values and preset swatches.CommandCommand menu for search and quick actions.Context MenuDisplays a menu of actions triggered by a right click.Copy ButtonAn icon button that copies a value, with copied and failed feedback.Copy TextInline code that stays readable and copies its value when activated.Data FormA form built by hand or from field configuration, with linked fields, validation, lists, steps and overlays.Data TableA table driven by column configuration, with local or remote data, search, filters, selection and plugins.Date PickerA typed, segmented date field with a calendar panel for one day or a range, optionally with a time of day.DialogA window overlaid on either the primary window or another dialog window, rendering the content underneath inert.DirectionA provider component that sets the text direction for your application.DrawerA drawer component for React.Dropdown MenuDisplays a menu to the user — such as a set of actions or functions — triggered by a button.EmptyUse the Empty component to display an empty state.FeedbackOpt-in haptics and click sounds for controls, in the spirit of Apple platforms.FieldCombine labels, controls, and help text to compose accessible form fields and grouped inputs.GlassClear liquid glass with SVG refraction and a CSS fallback, and a CSS-only frosted material.Hover CardFor sighted users to preview content available behind a link.ImageAn image with loading and failure states, and an optional fullscreen preview with zoom, rotation and a gallery.InputA text input component for forms and user data entry with built-in styling and accessibility features.Input GroupAdd addons, buttons, and helper content to inputs.Input OTPIndividual code inputs with character filtering and asynchronous verification feedbackItemA versatile component for displaying content with media, title, description, and actions.KbdUsed to display textual user input from keyboard.LabelRenders an accessible label associated with controls.LoaderEighteen loading animations with accessible labels, adjustable speed, and reduced motion support.Locale ToggleA controlled language button or selector without routing or persistence assumptions.Long TextTruncated text with a full-text disclosure only when the content overflows.MenubarA visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.Navigation MenuA collection of links for navigating websites.Navigation ProgressA controlled navigation loading bar with delayed start and completion feedback.PaginationCompact data pagination with range information, page navigation, and page-size selection.PopoverDisplays rich content in a portal, triggered by a button.ProgressDisplays an indicator showing the completion progress of a task, typically displayed as a progress bar.QRCodeA theme-aware QR code with loading feedback and optional reveal animation.QuestionnaireA multi-step questionnaire with single-choice, multiple-choice, freeform, and skippable questions.Radio GroupA set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.ResizableAccessible resizable panel groups and layouts with keyboard support.Scroll AreaAugments native scroll functionality for custom, cross-browser styling.SelectPick one or more values from a list—as a plain dropdown, a searchable list or a text input with suggestions.SeparatorVisually or semantically separates content.SheetExtends the Dialog component to display content that complements the main content of the screen.SidebarA composable, themeable and customizable sidebar component.SkeletonUse to show a placeholder while content is loading.SliderAn input where the user selects a value from within a given range.SwitchA control that allows the user to toggle between checked and not checked.Tab BarControlled application navigation with press-and-slide selection, an iOS-style search button and optional glass material.TableA responsive table component.TabsA set of layered sections of content—known as tab panels—that are displayed one at a time.Tag InputA multi-value input with custom tags, suggestions, and keyboard-accessible chips.TextareaDisplays a form textarea or a component that looks like a textarea.Theme ToggleA controlled light/dark switch with optional view-transition effects.Time PickerA typed, segmented time field with wheels, for one time or a start and end.ToastA succinct message that is displayed temporarily.ToggleA two-state button that can be either on or off.Toggle GroupA set of two-state buttons that can be toggled on or off.ToolbarGroups related commands and controls with arrow-key focus navigation.TooltipA popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.Tooltip ButtonA button, usually icon-only, whose tooltip also gives it an accessible name.Wheel PickerA cylindrical drum picker with flick momentum, a bouncing detent, keyboard selection, and optional glass.