Skip to content

Commit

Permalink
Merge pull request #15 from shaozi/03-readme
Browse files Browse the repository at this point in the history
03 readme
  • Loading branch information
shaozi authored Jan 28, 2022
2 parents 6e45ed1 + ed6a5ed commit a49aa1b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ Clone this project and run it. Itself is an example. Take a look at the homepage
<Steps {steps} />
```

### Vertical Steps (NEW)

> NOTE: needs svelte version 3.46.3 or newer
```javascript
<script>
import { StepsVertical } from 'svelte-steps';
let steps = [
{ text: 'step one' },
{ text: 'step two' },
{ text: 'the last step' }
];
</script>

<StepsVertical {steps} />
```

### With Icons

```javascript
Expand Down Expand Up @@ -110,14 +127,15 @@ It by default uses `--bs-primary`, `--bs-secondary`, `--bs-light`, and `--bs-dar
- `icon`: A svelte component displayed inside each steps.
- `iconProps`: An object that will be passed as props to the `icon` component.
- `current`: current step index. Number. Default `0`
- `size`: size of the step buttons. String. Default `"3rem"`
- `lineHeight`: height of the connecting lines between the step buttons. String. Default `"0.3rem"`
- `size`: size of the step buttons. String. Default `"3rem"` (`"2rem"` for vertical steps)
- `line`: thickness of the connecting lines between the step buttons. String. Default `"0.3rem"` (`"0.15rem"` for vertical steps)
- `primary`: Primary color of passed and current steps. String. Default `'var(--bs-primary, #3a86ff)'`
- `secondary`: Secondary color of future steps. String. Default `'var(--bs-secondary, #bbbbc0)'`
- `light`: Primary color of text color in passed anc current steps. String. Default `'var(--bs-light, white)'`
- `dark`: Secondary color of text color in future steps. String. Default `'var(--bs-dark, black)'`
- `borderRadius`: Border radius of the step buttons. String. Default `'50%'` (circle)
- `fontFamily`: Font family of the component. String. Default `"'Helvetica Neue', Helvetica, Arial, sans-serif"`
- `reverse`: For vertical steps only. Puts text to the left. Default `false`

## Events

Expand Down

0 comments on commit a49aa1b

Please sign in to comment.