Directory
- Welcome
Steps Component
The Steps component helps you create organized, numbered instructions that guide users through processes or tutorials. Each step appears with automatic numbering and clear visual hierarchy.
Key Features
-
Visual Hierarchy: Clear connections between steps
-
Rich Content Support: Handles various content types
-
Accessible Design: Screen reader friendly structure
Basic Usage
Create numbered instructions with the Steps component:
<Steps>
1. First step goes here
step contents
2. Second step follows
step contents
3. Third step completes the sequence
step contents</Steps>
Rich Content Support
Steps can contain various content types:
-
Interactive Elements
Here’s a section with a slider:
-
Code Examples
<Button variant="primary">Click me</Button> -
Components
Complete
Best Practices
-
Content Structure
- Keep steps concise
- Use clear instructions
- Maintain logical flow
- Include relevant details
-
Visual Design
- Use consistent spacing
- Maintain hierarchy
- Consider step length
- Add visual aids
-
Accessibility
- Use semantic markup
- Provide clear context
- Consider screen readers
- Maintain readability
Implementation Example
-
Install Dependencies
Terminal window npm install @astrojs/starter -
Import Component
---import Steps from '@/components/NST-components/UI/steps/Steps.astro';--- -
Use in Template
<Steps>1. First step2. Second step</Steps>
Common Applications
Limited Time Launch Sale
Build better documentation with our AstroJS starter template. Get organized navigation, pre-built components, responsive design, and more!
GET 60% OFF!