Sakuga Back to Sakuga
Theme
Sound
Jump to a component

Core · Containers

FloatingToolbar

FloatingToolbar sits over a selection and offers what can be done with it.

@anicanon/sakuga/uiv1.0Used onWeb

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

Guidelines

  • Two or three ghost buttons at most ("Make it an event", Ask Maki). Position it with style just above the selection.
  • It disappears when the selection does.
FloatingToolbarExample.jsxReact
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

childrenrequired
ReactNode
label
stringDefault 'Selection'
style
CSSProperties
Position it just above the selection.
className
string
FloatingToolbarExample.swiftiOS · coming soon
FloatingToolbarExample.ktAndroid · coming soon

Each 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#ececf0
bg-surface-raisedneutral-875#1a1a21
toolbar-borderFloatingToolbar: outline.
border-dividershade-a12rgba(11,10,16,0.12)
border-dividerwhite-a12rgba(255,255,255,0.12)

Space and shape

toolbar-gap
gap-2xs
2px
toolbar-padding
inset-xs
4px
toolbar-radius
radius-md
12px
toolbar-ring-width
line-hairline
1px

Motion

toolbar-rise-in-animation
motion-rise
sk-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.