List
Use stable, unique item IDs. Mutate the parent array to add, remove, or reorder. Leaving rows become inert immediately.
Preview
Usage
<script setup lang="ts">
import { ref } from 'vue'
import { FzList } from '@chrisdalbano/forza-ui'
const builds = ref([{ id: 1, name: 'Guardian' }])
</script>
<template>
<FzList :items="builds" label="Builds">
<template #default="{ item }">{{ item.name }}</template>
<template #empty>No builds yet.</template>
</FzList>
</template>Import the shared stylesheet once and wrap your app in .fz-theme. See installation.
Props
| Name | Type | Required | Default |
|---|---|---|---|
items | readonly T[] | Yes | None |
label | string | Yes | None |
motionDisabled | boolean | undefined | No | None |
duration | number | undefined | No | None |
Events and state
parent owns mutations
Slots
default({item,index}), empty
Add from source
sh
forza add listSet up the CLI first. Generated API tables come from the Vue source, using Vue Language Tools.