Core Elements
Button Group
A row of connected buttons sharing borders and outer corners, for view switchers or segmented actions.
Usage
Installation
npm install @wunderui/reactThen import what you need:
import { ButtonGroup } from "@wunderui/react"Examples
Theme switch
Two icon buttons, the current one filled — click to switch.
Device preview
Desktop, tablet or phone — one at a time.
Previous and next
Two buttons sharing one border for paging.
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
View switcher
A pill group as a segmented view switcher in a page header.
Checkout redesign
API Reference
| Prop | Type | Default |
|---|---|---|
| shape | "rounded" | "pill" | "rounded" |