Skip to content

Data Display

Components for displaying data and content.

BvTable

Table · import { BvTable } from "@baklavue/ui"

PropTypeDescription
dataTableRow[]Table rows
columnsTableColumn[]Column definitions
titlestringTable title
sortablebooleanEnable sorting
selectablebooleanEnable row selection
multiplebooleanMulti-select
selected(string | number)[]v-model:selected
sortKeystringSorted column
sortDirectionstringasc, desc
isLoadingbooleanLoading state
paginationTablePaginationPropsPagination config

Events: update:selected, sort, row-click

Slots: default (custom cell content), empty

BvIcon

Icon · import { BvIcon } from "@baklavue/ui"

PropTypeDescription
nameBaklavaIconIcon name from Baklava icons
sizestringCSS size (e.g. "24px")
colorstringCSS color

BvImage

Image · import { BvImage } from "@baklavue/ui"

PropTypeDescription
srcstringImage URL (required)
altstringAccessible description (required)
widthstringCSS width (prevents CLS)
heightstringCSS height
loading"lazy" | "eager"Native loading behavior (default: lazy)
placeholder"skeleton" | "none"Placeholder type (default: skeleton)
objectFitstringCSS object-fit (default: cover)
srcsetstringResponsive image sources
sizesstringSizes attribute for srcset

Events: load, error

Slots: placeholder, fallback