Setup
Useswish.placements.create() to position the button in your header. Target the container where your header icons live.
Styling
Pass design tokens underdesign to match the button to your header style.
iconSize, iconStrokeWidth or iconColor to change it.
Customize the button
Control what the button shows using element props:
By default the badge is hidden when nothing is saved.
showZeroCount keeps it
visible at zero — it acts on the count, so it has no effect alongside
hideCount.
With no
text, the button has nothing to render beside the icon, so it stays
icon-only whatever iconOnly says.Programmatic creation
Create the button outside of the placement system:Further reading
- Placements overview for mount options, layout types, and responsive values
- Drawer to configure the drawer that the button opens
- Placements reference for the full API