-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Tom Smith <[email protected]> Co-authored-by: Benjamin Canac <[email protected]> Co-authored-by: Tom Smith <[email protected]>
- Loading branch information
1 parent
c2ebb04
commit 97a1c86
Showing
11 changed files
with
329 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ dist | |
.DS_Store | ||
.history | ||
.vercel | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup> | ||
const value = ref(50) | ||
</script> | ||
|
||
<template> | ||
<URange v-model="value" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
github: true | ||
description: Display a range field | ||
navigation: | ||
badge: "Edge" | ||
--- | ||
|
||
## Usage | ||
|
||
Use a `v-model` to make the Range reactive. | ||
|
||
::component-example | ||
#default | ||
:range-example | ||
|
||
#code | ||
```vue | ||
<script setup> | ||
const value = ref(50) | ||
</script> | ||
<template> | ||
<URange v-model="value" /> | ||
</template> | ||
``` | ||
:: | ||
|
||
### Style | ||
|
||
Use the `color` prop to change the visual style of the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: range' | ||
placeholder: 'Search...' | ||
props: | ||
color: 'primary' | ||
--- | ||
:: | ||
|
||
### Size | ||
|
||
Use the `size` prop to change the size of the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
size: 'md' | ||
--- | ||
:: | ||
|
||
### Disabled | ||
|
||
Use the `disabled` prop to disable the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
disabled: true | ||
--- | ||
:: | ||
|
||
### Min and Max | ||
|
||
Use the `min` and `max` prop to configure the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
min: 0 | ||
max: 100 | ||
--- | ||
:: | ||
|
||
### Step | ||
|
||
Use the `step` prop to change the step increment. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
step: 20 | ||
--- | ||
:: | ||
|
||
## Props | ||
|
||
:component-props | ||
|
||
## Preset | ||
|
||
:component-preset |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.