• Introduction
    • Why Liquid Oxygen
    • Getting started
      • React
      • Vue
  • Guides
    • CSS vs. Web Components
    • Component assets
    • Type checking and intellisense
    • Server-side rendering
    • Event handling
    • Form validation
    • Tailwind CSS integration
    • Design tokens
    • Sandbox applications
    • Troubleshooting
      • Popped-out element is rendered in wrong container
    • FAQ
  • Globals
    • Animations
    • Border-radius
    • Colors
    • Focus
    • Fonts
    • Shadows
    • Spacings
    • Theming
    • Typography
  • Components
    • Accordion
      • Accordion Panel
      • Accordion Section
      • Accordion Toggle
    • Background Cells
    • Badge
    • Breadcrumbs
      • Crumb
    • Button
    • Card
      • Card Stack
    • Checkbox
    • Circular Progress
    • Context Menu
      • Menu
      • Menuitem
      • Menuitem Group
    • Cookie Consent
    • Header
    • Icon
    • Input
    • Input Message
    • Label
    • Link
    • Loading Indicator
    • Modal
    • Notice
    • Notification
    • Pagination
    • Progress
    • Radio Button
    • Screen Reader Live
    • Screen Reader Only
    • Select
      • Option
    • Sidenav
      • Sidenav Accordion
      • Sidenav Back
      • Sidenav Header
      • Sidenav Heading
      • Sidenav Navitem
      • Sidenav Separator
      • Sidenav Slider
      • Sidenav Subnav
      • Sidenav Toggle Outside
    • Slider
    • Stepper
      • Step
    • Switch
      • Switch Item
    • Table
      • Table Body
      • Table Caption
      • Table Cell
      • Table Colgroup
      • Table Column
      • Table Footer
      • Table Head
      • Table Header
      • Table Row
      • Table Toolbar
    • Tabs
      • Tab
      • Tab List
      • Tab Panel
      • Tab Panel List
    • Toggle
    • Tooltip
    • Typography
  • Data Visualization
    • Getting Started
  1. Properties
  2. Events
  3. Methods
    1. focusInner() => Promise<void>
  4. Shadow Parts
  5. Dependencies
    1. Depends on
    2. Graph
Components Stepper Step
(external link)

ld-step #

The ld-step component is a subcomponent for ld-stepper.

Please refer to the ld-stepper documentation for usage examples.


Properties #

Property Attribute Description Type Default
brandColor brand-color Switch colors for brand background boolean false
current current Step is the current step boolean false
description description Description text to display below the step name (vertical mode only) string undefined
disabled disabled Step is not clickable boolean false
done done Step is done boolean false
href href Link to the step (makes the step an anchor instead of a button) string undefined
icon icon Permanently show a custom icon inside the dot HTMLLdIconElement undefined
key key for tracking the node's identity when working with lists string | number undefined
labelCurrent label-current Label for current step (scree-reader only) string 'Current'
labelDone label-done Label for step that is done (scree-reader only) string 'Done'
labelOptional label-optional Label for step that is optional (scree-reader only) string 'Optional'
labelSkipped label-skipped Label for step that was skipped (scree-reader only) string 'Skipped'
labelWasOptional label-was-optional Additional hint in label for step that is done and was optional (scree-reader only) string 'was optional'
lastActive last-active Indicates that the next step is not active boolean false
ldTabindex ld-tabindex Tab index of the step number undefined
next next Step can be processed next boolean false
optional optional Step may be skipped boolean false
ref ref reference to component any undefined
size size Step size "lg" | "sm" undefined
skipped skipped Step was skipped boolean false
vertical vertical Vertical layout boolean false

Events #

Event Description Type
ldstepselected Emitted when the focusable element is clicked and step is neither current nor disabled CustomEvent<{ index: number; label: string; }>

Methods #

focusInner() => Promise<void> #

Sets focus on the step

Returns #

Type: Promise<void>

Shadow Parts #

Part Description
"a" actual a element
"button" actual button element
"description" span element wrapping the description text
"focusable" focusable a or button element, depending on href prop
"li" actual li element

Dependencies #

Depends on #

  • ld-sr-only
  • ld-icon

Graph #

graph TD;
ld-step --> ld-sr-only
ld-step --> ld-icon
style ld-step fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS