Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Shared Layout Background

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/shared-layout-bg

Import the shared styles once in your application.

TSUsage
import SharedLayoutBg from '@/components/beui/layout/SharedLayoutBg.vue'
import '@/components/beui/styles.css'

API Reference

as?
"div" | "ul"

Semantic container used for the children.

Defaultdiv
pillClassName?
string

Class applied to the moving pill. Defaults to a subtle muted tint.

Default—
inset?
number

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

Default20
pillContainerClassName?
string

Positioning override for the pill wrapper inside each item.

Default—
class?
string
Default—
pillClass?
string

Alias of `pillClassName`.

Default—
pillContainerClass?
string

Alias of `pillContainerClassName`.

Default—
#default?
slot

The rows. Each child element becomes a row that owns a pill slot.

Default—

Updated