Glass UI Components for React
Glass UI components for React: buttons, forms, dialogs, menus and tables, ready to copy.
Components (21)
The everyday parts: buttons, cards, inputs, dialogs, tabs, toasts and the data table.
Alert
A glass React alert component for inline messages, with four tones, an optional action and a dismiss button, announced by screen readers.
Avatar
A glass React avatar component that shows an image, falls back to gradient initials, and can show an online status dot.
Badge
A React badge is a small glass label for status and counts that stays readable on any background and never relies on color alone.
Button
A glass button for React is a button that lifts on hover and presses down on tap, with a sweep of light across the filled variants, animated with Motion and kept still under reduced motion.
Button group
A React button group that joins related buttons into one control, with attached corners and arrow-key roving focus.
Checkbox
An animated checkbox for React whose check pops in, with an indeterminate state for “select all”, built on Base UI's accessible checkbox.
Combobox (Select2)
A React combobox with search in the style of Select2: type to filter, pick one or many as animated chips, group or create options, or search a server as you type.
Data table
A typed, accessible React data table on TanStack Table v9 with search, faceted filters, multi-sort, pagination, selection and CSV export, all in glass.
Dialog
A strong-glass React modal dialog that springs in with Motion, with focus trapping, Escape to close and focus return handled by Base UI.
Glass card
The glassmorphism card is SheenUI's basic frosted-glass surface for React: pick one of three blur levels, and a soft highlight follows the pointer.
Input
A glass text input for React with its label, description and error message wired up for screen readers, and a soft accent glow on focus.
OTP input
A React OTP input with one slot per digit, paste and SMS autofill, and Motion feedback: digits pop in, errors shake and success ripples.
Popover
A glass React popover anchored to its trigger, for small forms and details; Escape or a click outside closes it.
Progress
A glass React progress bar with an accent fill and a sweep of light, plus an indeterminate mode for loading states.
Select
A glass React select dropdown for picking one option, with type-to-jump and items that drift in; for search or multi-select, use the Combobox.
Slider
A glass React slider that picks a single value or a range by dragging, clicking the track or pressing the arrow keys.
Switch
An animated React toggle switch, an iOS switch in Tailwind, whose thumb springs across a glass track with Motion and fills with the accent color when on.
Spinner
A React loading spinner for work with no known length, announced politely and held still as a static arc under reduced motion.
Tabs
Animated tabs for React are a Base UI tab list where a glass pill slides to the active tab, driven by the indicator variables, with full arrow-key support.
Toast
A React toast is a glass notification that stacks, fans out on hover and can be swiped away, announced automatically to screen readers.
Tooltip
A glass React tooltip that appears on hover and keyboard focus; inside a provider, moving between tooltips is instant.
Forms (13)
Pickers, uploads, number fields, ratings and tags, with labels and errors wired for screen readers.
Calendar
A glass React calendar built on Intl, so the week starts and the month names read the way the user's locale expects.
Color picker
A glass React color picker with a saturation area, hue and opacity sliders, typed hex, RGB and HSL values, swatches and the screen eyedropper.
Date picker
A glass React date picker that opens a calendar in a popover, or in a bottom sheet on phones, for single dates and ranges.
Field and Label
A composable React form field that wires a label, a description and an error message to any control, ready for react-hook-form.
File upload
A glass drag-and-drop file upload for React that validates files on drop and lists each one with a thumbnail, progress bar, cancel and retry.
Input group
A React input group that attaches text, icons or buttons to a field and shares one focus ring.
Number field
A glass React number input with steppers you can hold, a scrub label you can drag, and Intl formatting for currency, percentages and units.
Radio group
A React radio group in two styles: glass dots whose pip springs out, or rich option cards where the selection glides from card to card.
Rating
An animated React star rating with hover preview and half steps, built as a radio group so arrow keys and screen readers just work.
Segmented control
An iOS-style segmented control for React where a glass pill slides to the chosen segment and the arrow keys move between segments.
Tags input
A glass React tags input that turns typed text into chips, adds a pasted list at once and lets you walk and remove chips from the keyboard.
Textarea
A glass React textarea that auto-resizes to fit its content and can show a character counter whose ring fills as you type.
Toggle
A React toggle button that stays pressed and is announced as “pressed”, and can be grouped in a glass toolbar.
Overlays (9)
Menus, context menus, drawers, hover cards and the command palette.
Alert dialog
A glass React alert dialog that asks before destructive actions, focuses the safe choice first and stays open with the error if the action fails.
Command palette (⌘K)
A glass React command palette that opens with ⌘K or Ctrl+K, with fuzzy search, recent picks first and nested pages.
Context menu
A glass React context menu that opens on right-click, on long-press on touch screens, or with Shift+F10, right where you pressed.
Drawer / Sheet
A glass React drawer that slides in from any edge, with bottom sheets you can drag, snap and swipe away.
Dropdown menu
A glass React dropdown menu with icons, shortcuts, groups, checkbox and radio items and submenus, whose highlight glides from item to item.
Hover card
A glass React hover card that previews what is behind a link, opening on hover or keyboard focus after a short delay.
Kbd
The Kbd component renders keyboard shortcuts as glass key caps in React, showing ⌘K on a Mac and Ctrl+K on Windows and Linux from one definition.
Menubar
A glass desktop-style React menubar with File, Edit and View menus, reached with one Tab stop and walked with the arrow keys.
Side drawer
A glass React slide-over panel, or side drawer, that slides in to edit a record or show its details, with an edit form that guards unsaved changes.
Navigation (4)
A horizontal navbar and a vertical sidebar.
Navbar
A glassmorphism navbar for React comes in two forms: a floating Apple-style pill whose highlight morphs between items, and a full-width top bar with a sliding underline.
Navigation menu
A glass React navigation menu whose items open rich dropdown panels, with hover intent, a panel that morphs between items, and full keyboard support.
Sidebar
A glass React sidebar for app shells with collapsible groups, badges and a collapsed icon rail.
Vertical nav
A glass sidebar navigation for React with grouped items, icons and counts that collapses into an icon rail with tooltips.
Layout (11)
Accordion, breadcrumb, stepper, timeline, toolbar and scroll area.
Accordion
An animated React accordion whose sections open on a spring, with every trigger a real button in the tab order.
Aspect ratio
A React aspect ratio box that keeps images, video and maps at a fixed width-to-height ratio, preventing layout shift.
Breadcrumb
A responsive React breadcrumb whose middle items fold into a menu when space runs out, and unfold again when there is room.
Collapsible
A React collapsible section that animates its height and keeps closed content out of the page and the tab order.
Pagination
A React pagination component with page numbers, ellipses and first, previous, next and last buttons in a labeled navigation landmark.
Resizable panels
Resizable panels for React split a layout into regions with draggable, keyboard-resizable handles, size limits and nested groups.
Scroll area
A React scroll area that keeps native scrolling but adds slim custom scrollbars in glass, with edges that fade only where there is more to see.
Separator
A React separator for hairline dividers, horizontal or vertical, solid, fading or dashed, with an optional label.
Stepper
An animated React stepper for multi-step forms and checkouts that collapses to “Step 2 of 4” on phones.
Timeline
An animated React timeline for activity feeds, audit logs, order tracking and changelogs that draws itself as you scroll.
Toolbar
A glass React toolbar that groups related controls behind a single tab stop, moved through with the arrow keys.
Data display (6)
Carousel, code block, empty state, meter and skeleton.
Carousel
A glass React carousel you can swipe, drag or flick, with an endless loop, responsive slides per view and autoplay that pauses on hover and focus.
Code block
A glass React code block with a small built-in syntax highlighter, line numbers, highlighted and diff lines, a file tab and a copy button.
Empty state
An animated React empty state component that shows one clear next step when a page, list or search has nothing in it yet.
Meter
A glass React meter for a level inside a known range, such as storage, battery or password strength, that is spoken as well as colored.
Table
The React table component is a set of plain, styled table primitives for small static tables, in a glass region that scrolls sideways on narrow screens.
Skeleton
A glass React skeleton loader that holds the exact layout while content loads, so nothing jumps when it arrives.
Chat (3)
A chat list, a conversation view and a support widget.
Chat list
A React chat list UI for a messaging app, with search, filters with counts, pinned chats, presence and unread badges.
Chat view
A React chat UI for one conversation: bubbles grouped by sender, sticky day labels, replies, reactions, photos and typing.
Popover chat
A React chat widget for support: a launcher in the corner of the page springs open a glass panel with a greeting and recent conversations.
About components
Frequently asked questions
All exports on this page
classNameWith— Base UI's className is a string OR a function of the part's state.cn— Merge class names, letting later Tailwind classes override earlier ones.useLatest— A ref that always holds the latest value, for stable callbacks that must read current props or state without becoming dependencies.useSyncRef— Keeps an existing ref in step with value: the same layout-effect update as useLatest.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .