primevue-mirror/apps/showcase/doc/stepper/StepsOnlyDoc.vue

62 lines
1.6 KiB
Vue
Raw Normal View History

2024-07-02 12:46:06 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Use Stepper with a <i>StepList</i> only for custom requirements where a progress indicator is needed.</p>
</DocSectionText>
<div class="card flex justify-center">
<Stepper value="1" class="basis-[50rem]">
<StepList>
<Step value="1">Design</Step>
<Step value="2">Development</Step>
<Step value="3">QA</Step>
</StepList>
</Stepper>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<Stepper value="1" class="basis-[50rem]">
<StepList>
<Step value="1">Design</Step>
<Step value="2">Development</Step>
<Step value="3">QA</Step>
</StepList>
</Stepper>
`,
options: `
<template>
<div class="card flex justify-center">
<Stepper value="1" class="basis-[50rem]">
<StepList>
<Step value="1">Design</Step>
<Step value="2">Development</Step>
<Step value="3">QA</Step>
</StepList>
</Stepper>
</div>
</template>
`,
composition: `
<template>
<div class="card flex justify-center">
<Stepper value="1" class="basis-[50rem]">
<StepList>
<Step value="1">Design</Step>
<Step value="2">Development</Step>
<Step value="3">QA</Step>
</StepList>
</Stepper>
</div>
</template>
`
}
};
}
};
</script>