Skip to content

Commit

Permalink
fix: update props and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpleroux committed Sep 17, 2024
1 parent 86dcb9f commit 0755094
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
17 changes: 9 additions & 8 deletions es-ds-components/components/es-slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
import Slider from 'primevue/slider';
const props = defineProps({
/**
* Starting value of slider thumb
*/
startingValue: {
type: Number,
required: true,
default: 1,
},
/**
* Minimum value of slider
*/
min: {
type: Number,
required: true,
default: 0,
default: 1,
},
/**
* Maximum value of slider
Expand All @@ -25,13 +33,6 @@ const props = defineProps({
type: Number,
default: 1,
},
/**
* Starting value of slider thumb
*/
startingValue: {
type: Number,
required: true,
},
/**
* Aria label for slider handle
*/
Expand Down
7 changes: 4 additions & 3 deletions es-ds-docs/pages/molecules/slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ const step = ref(50);
const ariaLabel = ref('Sample aria-label');
const propTableRows = [
['min', 'Number', '0', 'Required. Minimum value of slider.'],
['starting-value', 'Number', '1', 'Required. Initial value of slider.'],
['min', 'Number', '1', 'Required. Minimum value of slider.'],
['max', 'Number', '100', 'Required. Maximum value of slider.'],
['step', 'Number', '1', 'Step factor to increment/decrement the value.'],
['ariaLabel', 'String', '"Pick a number"', 'Aria-label for slider handle.'],
['labelFormatter', 'Function', 'n/a', 'Function that modifies label value.'],
['aria-label', 'String', '"Pick a number"', 'Aria-label for slider handle.'],
['label-formatter', 'Function', 'n/a', 'Function that modifies label value.'],
];
const { $prism } = useNuxtApp();
Expand Down

0 comments on commit 0755094

Please sign in to comment.