🎨
Valence
🎨
Valence
  • Overview
    • 👋Welcome to Valence
    • 🏄‍♂️Getting started
  • Core Concepts
    • Responsiveness
    • Color
      • List of colors
      • Color types
    • Polymorphism
  • Valence Core
    • 🏃‍♂️Fundamentals
      • 🎬The ValenceProvider
      • ✍️Using custom fonts
    • 🧱Components
      • 🔘Buttons
        • Button with icon
        • Grid Button
        • Text button
        • Icon button
        • Multi-part button
        • Unstyled button
        • Primitive button
      • ⌨️Inputs
        • Color Picker
        • Text input
        • Text area
        • Number input
        • Select input
        • Switch
        • Slider
        • Range slider
        • Pill selector
        • Input container
        • Dropdown container
      • 🖥️Display
        • Accordion
        • Alert
        • Color Swatch
        • Icon
        • Image
        • Avatar
        • Avatar Group
        • Loader
        • Pill
        • Spoiler
        • Stepper
        • Text
        • Title
      • 🧩Layout
        • App Container
        • Card
        • Flex
          • Flex Center
          • Styled Flex
        • Floating Toolbar
        • Grid
        • Header
        • Overflow Container
        • Space
      • 🗺️Navigation
        • App Nav
      • 🔼Overlays
        • Modal
        • Tooltip
        • Modal background
        • 📰Sheets
          • Bottom Sheet
          • Dynamic Sheet
          • Side Sheet
    • 🪝Hooks
      • UseColorScheme
      • UseColors
      • UseControlledList
      • UseDetectKeyDown
      • UseDisclosure
      • UseFloating
      • UseTooltip
      • UseBreakpoint
      • UseResponsiveProps
    • 🤚Generics
      • Generic button props
      • Generic input props
      • Generic Sheet Props
  • Valence Plugins
    • 🎠Valence Carousel
      • Carousel Child Props
  • Valence Utils
    • ✋Generics
      • Clickable
      • Events
      • Global
      • Grid
      • Layout
      • Overlay
      • Polymorphic
    • 🧜‍♀️Polymorphism
      • Polymorphic Button
      • Polymorphic Layout
      • Polymorphic Text
  • Update Notes
    • 3.0.0
    • 2.7.0
    • 2.6.0
    • 2.5.0
    • 2.4.0
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
Powered by GitBook
On this page
  • Usage
  • Props
  • StepperProps
  • StepperIndicatorProps
  • StepperIndicatorState
  • StepperStepProps

Was this helpful?

Edit on GitHub
  1. Valence Core
  2. Components
  3. Display

Stepper

Last updated: 2.1.0 (30/01/2024) | Added: 2.1.0

The Stepper component system is useful for displaying a list or guide that a user can progress through.

Usage

import { Stepper, Text } from "@valence-ui/core";

function MyComponent() { 
    const [currentStep, setCurrentStep] = React.useState(0);

    return ( 
        <>
            <Stepper
                currentStep={currentStep}
            >
                <Stepper.Step>
                    <Text size="xl">
                        Step 1
                    </Text>
                </Stepper.Step>
                
                // Other steps
            </Stepper>
        </>
    )
}

The Stepper does not expose any way to internally control the current step, as it is expected this logic should be handled by the Stepper's children.


Props

StepperProps

Property
Type
Description

currentStep (required)

number

The current step to display.

variant

FillVariant

The fill variant to use for this stepper.

size

ComponentSize

The size of this stepper.

color

CSSProperties["color"]

The color of this stepper.

StepperIndicatorProps

Property
Type
Description

step (required)

number

The step number for this indicator.

state

The current state of this indicator.

variant

FillVariant

The fill variant to use for this indicator.

size

ComponentSize

The size of this indicator.

color

CSSProperties["color"]

The color of this indicator.

StepperIndicatorState

type StepperIndicatorState = "default" | "active" | "complete";

StepperStepProps

No unique props.

PreviousSpoilerNextText

Last updated 1 year ago

Was this helpful?

Extends .

Extends .

🧱
🖥️
GenericProps
FlexProps
StepperIndicatorState