Skip to content

basic-web-components

Small self-registering web components with native slots. One page per component: a live example plus the full README reference.

Accordion

bwc-accordion

Collapsible sections built on native details elements.

Live example

One
One content
Two
Two content
demo state: two

View Accordion docs

Modal

bwc-modal

Dialog overlay with modal focus and backdrop dismissal.

Live example

Confirm changes?

Backdrop click or Escape also closes.

View Modal docs

Popover

bwc-popover

Non-modal floating panel on the native popover API.

Live example

Popover content

View Popover docs

Tooltip

bwc-tooltip

Non-modal hover tooltip with open/close delays.

Live example

Saves the current file

View Tooltip docs

Preview card

bwc-preview-card

Link preview card that opens on hover or focus.

Live example

Popover docs
Floating panels without focus traps.

View Preview card docs

Menu

bwc-menu

Floating action menu anchored to a trigger button.

Live example

View Menu docs

Context menu

bwc-context-menu

Floating menu that opens on right-click, anchored at the pointer.

Live example

Right-click me

View Context menu docs

Select

bwc-select

Single-value select with a floating listbox and form participation.

Live example

Apple
Banana
Cherry
demo state:

View Select docs

Switch

bwc-switch

On/off toggle with native form participation.

Live example

demo state: on

View Switch docs

OTP

bwc-otp

One-time-code input with generated fields and a hidden form input.

Live example

demo state:

View OTP docs

Tabs

bwc-tabs

Tabbed interface with matched panels, one visible at a time.

Live example

One panel
Two panel
demo state: one

View Tabs docs

Slide-out

bwc-slide-out

Non-modal drawer panel with overlay dismissal and focus management.

Live example

View Slide-out docs

Alert dialog

bwc-alert-dialog

Confirmation dialog with modal backdrop and focus management.

Live example

Discard draft?

You can't undo this action.

View Alert dialog docs

Toast

bwc-toast-region

Toast notifications with auto-dismiss, limits, and types.

Live example

Saved
Your changes are live.

View Toast docs

Menubar

bwc-menubar

Coordinated menu bar with hover switching and a single-open invariant.

Live example

View Menubar docs

Navigation menu

bwc-navigation-menu

Site navigation with hover-driven content panels and delays.

Live example

View Navigation menu docs