Shared Layout Background

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/shared-layout-bg

API Reference

as?
"div" | "ul"

Semantic container used for the children.

Defaultdiv
pillClassName?
string

Tailwind class applied to the moving pill. Defaults to a subtle foreground tint.

Default—
inset?
number

Horizontal inset of the pill relative to each row (px). Default 20.

Default20
pillContainerClassName?
string

Optional positioning override for the pill wrapper inside each item.

Default—
className?
string
Default—

Updated