Tangible Design System · @tangible/ui 0.2.29 · Interactive version · Markdown

OverlapStack

import { OverlapStack } from '@tangible/ui';

Interactive docs and examples: OverlapStack in Storybook.

OverlapStack props

Prop Type Default Description
children ReactNode Children to stack
aria-label? string Accessible label for the stack group. Adds role="group" when provided.
aria-labelledby? string ID of element labelling the stack. Adds role="group" when provided.
className? string Additional class name
frame? boolean Enable clipping frame on item wrappers. Adds border-radius and overflow:hidden. Customise via tokens: --tui-overlap-stack-item-radius (default: full); --tui-overlap-stack-border-width (default: 0); --tui-overlap-stack-border-color (default: bg-surface)
max? number Maximum visible items. Overflow becomes +N badge.
overflowLabel? (count: number) => string (count) => `${count} more` Accessible label for the overflow badge. For i18n support. Function receives count and returns label string.
overlap? number | string Overlap amount in pixels (negative) or CSS length string.
renderOverflow? (count: number) => ReactNode Custom renderer for overflow badge. Receives count of hidden items.
style? React.CSSProperties Inline styles

OverlapStack.Overflow

Prop Type Default Description
children ReactNode
aria-label? string Accessible label for overflow badge
className? string
style? React.CSSProperties

Examples

Component API tokens

Read via fallback, never declared. Set one on an ancestor to restyle every instance under it.