Centered section with heading and a vertical list of numbered steps. Each step shows a numbered badge, step title, and descriptive text. Styled with Tailwind and design tokens; no external dependencies.
Prop | Type | Default / Req. | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
title | String | required | The heading displayed above the list of steps. | ||||||||||||||||
steps | Array | required | An ordered list of step objects, each containing a number, title, and content. | ||||||||||||||||
|
You may use these UI components in your own personal or commercial projects. You may not resell, redistribute, sublicense, or package them as standalone assets or template/library packs.
Full terms: End-User License Agreement
Below you can expand the main implementation file and any supporting components. Use the “Copy” button to grab a snippet straight to your clipboard.
These are the raw components that are required to run this example. Copy-paste them into your project. Most likely you will not change anything in these files, but you can if you want to. These are the components that are used in the main implementation file.
<!-- components/HowDoesItWork.vue -->
<script setup>
const props = defineProps({
title: {
type: String,
required: true,
},
steps: {
type: Array,
required: true,
validate: (value) => {
return value.every((step) => step.number && step.title && step.content);
},
},
});
</script>
<template>
<section
class="flex flex-col items-center justify-start gap-4 font-iq-paragraph leading-iq-paragraph tracking-iq-paragraph text-iq-paragraph-color"
>
<h3
class="text-center mb-4 drop-shadow font-iq-header text-3xl md:text-5xl leading-iq-header tracking-iq-header text-iq-header-color"
>
{{ title }}
</h3>
<div
v-for="step in steps"
:key="step.number"
class="flex items-start gap-8 rounded-iq-roundness"
>
<div
class="flex-shrink-0 flex items-center justify-center w-12 h-12 rounded-full border border-iq-primary"
>
<span class="text-2xl font-bold">
{{ step.number }}
</span>
</div>
<div>
<h4 class="font-iq-header text-xl font-semibold text-iq-header-color mb-2">
{{ step.title }}
</h4>
<p class="text-justify">
{{ step.content }}
</p>
</div>
</div>
</section>
</template>
This is the main Vue file that uses the component. Copy-paste this into your project. In this code feel free to change anything you like, such as the component name, props, or class. This is the place where you control the main component.
<!-- pages/HowPage.vue -->
<script setup>
const steps = [
{
number: 1,
title: 'Pick Your Tokens',
content: `Define your color palette, typography scale, spacing and corner radii in our live theme editor.`
},
{
number: 2,
title: 'See It Live',
content: `Tweak sliders and color pickers—and watch every component and section update in real time.`
},
{
number: 3,
title: 'Copy & Integrate',
content: `Export single components or full layouts—each piece is pre-wired to your theme for frictionless integration.`
}
]
</script>
<template>
<div class="iq-card-glass max-w-2xl mx-auto px-6 py-24 iq-card-glass">
<CardsSteps :steps="steps" title="How It Works?" />
</div>
</template>
Decide whether you want a global design-system or a one-off inline snippet.
Complete @theme
block – import once and share across every component.
Copy the code below into main.css
file. It is most likely in assets/css/main.css
directory.
:style
binding – paste straight onto any of ours components.
Copy the code below and paste it into the :style
binding of the component.
I wish I could automate every little thing—but for now you’ll need to handle these final steps by hand. Apologies for the extra work!
iq-card-*
style Now that you’ve picked a card preset, copy its CSS into your @layer components
block in main.css
. This ensures every `iq-card
` wrapper will look just right.
iq-cta
iq-cta is the main call to action button class. It’s used in many places across the components. But for now it is only a single class that you can customize. You can copy the code below and paste it into your @layer components
block in main.css
. In future you will be able to fully customize it from our UI and choose from many presets.
I didn't have time to figure out consistency. Although there are no actions required, be mindful that the forms might not be entirely consistent with the design system. A quick once-over will keep everything looking sharp.