Skip to main content
PROYECTOVIVIANA

ActionBar

The props declared for ActionBar, generated from the types @proyecto-viviana/ui ships.

Import

import { ActionBar } from "@proyecto-viviana/ui";

Props

Props for ActionBar in @proyecto-viviana/ui
PropTypeDefaultDescription
selectedItemCountnumber | "all"—The number of selected items. ActionBar is hidden when 0.
isEmphasizedfalse | true—Whether the ActionBar should be displayed with an emphasized style.
onClearSelection() => void—Callback when the clear button is pressed.
onAction(key: Key) => void—Callback when an action is triggered.
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The action buttons to display.
scrollRefHTMLElement | { current?: HTMLElement | null; }—A ref to the scrollable element the ActionBar appears above.
stylesStyleString | (() => StyleString | undefined)—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
aria-labelstring'Actions'Accessible label for the action bar.
aria-labelledbystring—Identifies the element (or elements) that labels the action bar.
onKeyDownJSX.EventHandlerUnion<HTMLDivElement, KeyboardEvent, JSX.EventHandler<HTMLDivElement, KeyboardEvent>>—Optional keydown handler for the action bar root.
slotstring—Not yet documented
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented

Declared in packages/viviana-ui/src/actionbar/index.tsx.

ActionBarContainer props

Props for ActionBarContainer in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Not yet documented
classstring—Not yet documented

Declared in packages/viviana-ui/src/actionbar/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.