Skip to content

Layout Components

Components for organizing content and creating layouts.

BvDialog

Dialog · import { BvDialog } from "@baklavue/ui"

PropTypeDescription
openbooleanVisibility
captionstringDialog title
closablebooleanShow close button
backdropbooleanClick backdrop to close
sizestringsmall, medium, large or CSS value

Slots: default (content)

BvDrawer

Drawer · import { BvDrawer } from "@baklavue/ui"

PropTypeDescription
openbooleanVisibility
captionstringDrawer title
embedUrlstringIframe URL (replaces slot)
externalLinkstringHeader link URL
widthstringsmall, medium, large or CSS value

Slots: default (content)

BvDropdown

Dropdown · import { BvDropdown } from "@baklavue/ui"

PropTypeDescription
openbooleanDropdown visibility
placementstringPopover placement
labelstringTrigger button label
itemsDropdownItem[]Items mode
variantButtonVariantTrigger button variant
disabledbooleanDisabled state

Slots: trigger, default, item (scoped)

Events: update:open, select

BvTooltip

Tooltip · import { BvTooltip } from "@baklavue/ui"

PropTypeDescription
contentstringTooltip text
placementTooltipPlacementtop, bottom, left, right, etc.
targetstring | ElementExternal trigger
triggerstringhover, click, etc.
delaynumberShow delay (ms)
disabledbooleanDisabled state

Slots: default (trigger element)

BvAccordion

Accordion · import { BvAccordion } from "@baklavue/ui"

PropTypeDescription
openbooleanExpanded state (single mode)
captionstringHeader text (single mode)
iconboolean | BaklavaIconIcon config
multiplebooleanGroup mode: allow multiple open
itemsAccordionItem[]Group mode items
disabledbooleanDisabled state
animationDurationnumberAnimation duration (ms)

Events: toggle (single mode)

Slots: default (single mode), item (scoped, group mode)

Methods: expand(), collapse() (single mode, via ref)

BvTab

Tab · import { BvTab } from "@baklavue/ui"

PropTypeDescription
activeTabstringv-model:activeTab
tabsTabOption[]Tab options
variantstringTab variant
orientationstringhorizontal, vertical

Events: update:activeTab

Slots: default (tab panels)

BvStepper

Stepper · import { BvStepper } from "@baklavue/ui"

PropTypeDescription
currentStepnumberv-model:currentStep
stepsStepperStep[]Step configs
orientationstringhorizontal, vertical
showLabelsbooleanShow step labels

Events: update:currentStep