Skip to content
On this page

Views

AViews is low level component that allows you render slider or carousel like functionality. It is used by ATabs component internally.

Basic

AViews component allows you to render single view from multiple views. It is useful when you want to render multiple views but only one view at a time.

This can be useful for tabs, carousels, etc.

First Card

Bear claw sweet dessert sweet chocolate bar sesame snaps shortbread.

You can create carousel like functionality by using AViews component.

Second Card

Lollipop marzipan cotton candy pie macaroon wafer jelly beans shortbread.

API

Views

modelValue : any

Active view value

transition : LiteralUnion<"fade" | "scale" | "slide-y" | "slide-y-reverse" | "scroll-y" | "scroll-y-reverse" | "slide-x" | "slide-x-reverse" | "scroll-x" | "scroll-x-reverse" | "view-next" | "view-previous", string> | null

Transition to use

default : {}
swipe => [direction: UseSwipeDirection]

View

value : any
default : {}

Released under the MIT License.