Theme
Sound
Jump to a component
Core · Containers
FloatingToolbar
FloatingToolbar sits over a selection and offers what can be done with it.
Live, from @anicanon/sakuga 2.0.0
Sakuga for iOS and Android is coming
iOS
Web only
FloatingToolbar is made for the web, and isn’t part of Sakuga for iOS yet.
Android
Web only
FloatingToolbar is made for the web, and isn’t part of Sakuga for Android yet.
- Use it for
- What can be done with a selection, two or three ghost buttons just above it: Make it an event, Ask Maki.
- Not for
- A menu opened from a controlPopover
- The actions of a viewViewHeader
- The edit buttons under the editor's pictureMonitorBar
Guidelines
- Two or three ghost buttons at most ("Make it an event", Ask Maki). Position it with
stylejust above the selection. - It disappears when the selection does.
import { Button, FloatingToolbar } from '@anicanon/sakuga/ui';
export default function FloatingToolbarExample() {
return (
<FloatingToolbar>
<Button variant="ghost" size="sm" icon="plus">
Make it an event
</Button>
<Button variant="ghost" size="sm">
Ask Maki
</Button>
</FloatingToolbar>
);
}PropsFloatingToolbarProps
childrenrequiredReactNodelabelstringDefault 'Selection'styleCSSPropertiesPosition it just above the selection.
classNamestringEach token reads a role, and the role lands on a value in each theme. Change the role and every component that reads it follows.
Colour
toolbar-bgFloatingToolbar: surface.bg-surface-raisedneutral-100#ececf0bg-surface-raisedneutral-875#1a1a21toolbar-borderFloatingToolbar: outline.border-dividershade-a12rgba(11,10,16,0.12)border-dividerwhite-a12rgba(255,255,255,0.12)Space and shape
toolbar-gapgap-2xs2px
toolbar-paddinginset-xs4px
toolbar-radiusradius-md12px
toolbar-ring-widthline-hairline1px
Motion
toolbar-rise-in-animationmotion-risesk-rise-in 240ms cubic-bezier(0, 0, 0, 1)
Checked automatically with axe-core 4.11.4 against WCAG 2.2 A and AA, on the live preview above, in light and dark, on 26 October 2026.
- Result
- No issues found, in light or in dark.
- By design
- A toolbar named by
label(default "Selection") that is one Tab stop: arrows move between its buttons, Home and End go to either end, and Tab comes back to the one last focused. - Not tested
- The automated check doesn't test keyboard use, focus order or what a screen reader says. The lines above are the design system's own account of them.