Skip to content

Components Navigation

Carousel

Items that snap into place as they scroll, by swipe, wheel or keyboard.

$ pyblade ui:add carousel

Props

Written as attributes of <pb-ui.carousel>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.

NameTypeDefaultDescription
label str "Carousel" What screen readers call it
class str "" Added to the classes of the component. Every other attribute is spread on it too.