defmodule PyrauiWeb.DocsLive.WizardDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Wizard

Multi-step flows with progress, tone colors, and compact spacing options.

Basic Wizard

<:step id="step1" title="Personal Info" active={true}>

Step 1: Personal Information

Enter your personal details here.

<:step id="step2" title="Account Details">

Step 2: Account Details

Set up your account information.

<:step id="step3" title="Review">

Step 3: Review

Review and confirm your information.


              <.wizard id="signup-wizard" tone={:blue}>
                <:step id="step1" title="Personal Info" active={true}>
                  <p>Step 1 content</p>
                </:step>
                <:step id="step2" title="Account Details">
                  <p>Step 2 content</p>
                </:step>
                <:step id="step3" title="Review">
                  <p>Step 3 content</p>
                </:step>
              </.wizard>
            

Tones

Indigo

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

Violet

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

Emerald

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

Teal

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

Rose

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

Orange

<:step id="s1" title="Info" active={true}>
<:step id="s2" title="Details">
<:step id="s3" title="Review">

              <.wizard id="flow" tone={:indigo} compact={true}>
                <:step id="s1" title="Info" active={true}><div class="h-24"></div></:step>
                <:step id="s2" title="Details"><div class="h-24"></div></:step>
                <:step id="s3" title="Review"><div class="h-24"></div></:step>
              </.wizard>
            

Options

Compact spacing compact={true}
<:step id="a" title="Start" active={true}>
<:step id="b" title="Middle">
<:step id="c" title="End">
Hide progress show_progress={false}
<:step id="one" title="One" active={true}>
<:step id="two" title="Two">

              <.wizard id="flow" tone={:slate} compact={true}>...</.wizard>
              <.wizard id="flow2" tone={:violet} show_progress={false}>...</.wizard>
            

Props

Prop Type Default Description
id string - Unique ID for the wizard
tone :blue | :indigo | :violet | :emerald | :teal | :rose | :orange | :slate :blue Color tone used for active/completed/progress and primary button
compact boolean false Use compact spacing
show_progress boolean true Show the top progress indicator
step.id string - Unique ID for each step
step.title string - Step title
step.active boolean false Whether the step is currently active
step.completed boolean false Whether the step is completed
""" end end