SwipeUI
DocsGuides

Custom components

Use shared press feedback and glass materials when building your own SwipeUI components.

Start with a ready-made item from Components. The CLI also installs its shared dependencies, so you can add a button, card or toolbar without assembling its primitives first.

When your design needs a custom interaction or surface, the same building blocks are available individually.

Press feedback

Use Pressable to make a custom tappable element follow SwipeUI's press motion, optional haptics, disabled state and minimum touch sizing. It also handles reduced motion. Supply the accessible name and role appropriate to your control.

For a finished action, use Button or Icon button.

Glass materials

Use Glass surface for a custom panel or floating surface. It shares the material policy used by the finished glass components: native glass where supported, blur where available, and an opaque fallback. Reduce Transparency always selects the opaque surface.

For finished glass navigation, use Tab bar glass action, Header search or Bottom accessory. Cards, panels and menus take the Glass material from the theme. The Liquid Glass guide covers custom composition and platform fallbacks. Native verification remains scheduled under Phase 7.9.

Theme, motion and utilities

Configure your app through tokens, presets, dark mode and motion. Shared hooks and helpers are documented under Hooks & utilities.

The ready-made Theme switch lives in Buttons and lets users choose Light, Dark or System through the theme provider.

On this page