View toggle
Switches the inbox between the list and split views. 24 tall with two 26 by 18 segments; the picked one is state/selected.
List and split
The toggle itself is instant. The inbox crossfades between the views in 120ms, with no layout animation.
Usage
import { ViewToggle } from "@kuori/ui/inbox";<ViewToggle value={view} onValueChange={setView} />ViewToggle
PropTypeDescription
valueRequired'list''split'The current view
onValueChangeRequired(view) => voidCalled with the view picked
classNamestringAdditional CSS classes