Stepper

Organism

Çok adımlı ilerleme göstergesi. complete/active/error/pending durumları; horizontal ve vertical yönelim.

Horizontal

Preview
  1. Account

  2. 2

    Profile

  3. 3

    Payment

  4. 4

    Confirm

Code
<%- include('modules/ui/Stepper', {
  steps: [
    { label: 'Account', state: 'complete' },
    { label: 'Profile', state: 'active' },
    { label: 'Payment', state: 'pending' },
    { label: 'Confirm', state: 'pending' },
  ]
}) %>

Vertical

Preview
  1. Create account

    Enter your email and password.

  2. Verify email

    Check your inbox.

  3. 3

    Set up profile

    Add your name and photo.

  4. 4

    Invite your team

    Optional.

Code
<%- include('modules/ui/Stepper', {
  orientation: 'vertical',
  steps: [
    { label: 'Create account',   description: 'Enter your email and password.', state: 'complete' },
    { label: 'Verify email',     description: 'Check your inbox.',              state: 'complete' },
    { label: 'Set up profile',   description: 'Add your name and photo.',       state: 'active' },
    { label: 'Invite your team', description: 'Optional.',                      state: 'pending' },
  ]
}) %>

With error state

Preview
  1. Upload

  2. Validate

  3. 3

    Process

Code
<%- include('modules/ui/Stepper', {
  steps: [
    { label: 'Upload',   state: 'complete' },
    { label: 'Validate', state: 'error' },
    { label: 'Process',  state: 'pending' },
  ]
}) %>
Source modules/ui/Stepper.ejs