mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
29 lines
644 B
Vue
29 lines
644 B
Vue
<script setup lang="ts">
|
|
import type { StepperItem } from '@nuxt/ui'
|
|
|
|
const items: StepperItem[] = [
|
|
{
|
|
title: 'Address',
|
|
description: 'Add your address here',
|
|
icon: 'i-lucide-house'
|
|
}, {
|
|
title: 'Shipping',
|
|
description: 'Set your preferred shipping method',
|
|
icon: 'i-lucide-truck'
|
|
}, {
|
|
title: 'Checkout',
|
|
description: 'Confirm your order'
|
|
}
|
|
]
|
|
</script>
|
|
|
|
<template>
|
|
<UStepper ref="stepper" :items="items" class="w-full">
|
|
<template #content="{ item }">
|
|
<Placeholder class="aspect-video">
|
|
This is the {{ item?.title }} step.
|
|
</Placeholder>
|
|
</template>
|
|
</UStepper>
|
|
</template>
|