@thebase/ui
Version:
CDN-installable Owl and Bootstrap 5 UI component library.
32 lines (24 loc) • 850 B
Markdown
# Slider
## Pure Owl component
```js
import { Slider } from "@thebase/ui";
```
```base-ui
<div style="width: 60%; max-width: 28rem">
<Slider value="33" max="100" step="1"/>
</div>
```
| Component | Prop | Type | Notes |
| --- | --- | --- | --- |
| `Slider` | `value` | `Number | String` | optional |
| `Slider` | `min` | `Number | String` | optional |
| `Slider` | `max` | `Number | String` | optional |
| `Slider` | `step` | `Number | String` | optional |
| `Slider` | `disabled` | `Boolean` | optional |
| `Slider` | `className` | `String` | optional |
| `Slider` | `onChange` | `Function` | optional |
See [Pure Owl Components](/examples/blocks.html#/docs/guide/owl-components) for how to load `@base/owl` and `dist/baseui.templates.xml`.
## Static component
```base-ui
<input b-ui="slider" type="range" min="0" max="100" value="50">
```