Skip to content

Commit

Permalink
chore: add story for readonly state of uui-slider
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Jun 24, 2024
1 parent 394955d commit 9baf2fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/uui-slider/lib/uui-slider.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
hideValueLabel: false,
value: 0,
disabled: false,
readonly: false,
},
argTypes: {
label: {
Expand All @@ -38,6 +39,7 @@ const Template: Story = props => html`
min=${props.min}
max=${props.max}
?disabled=${props.disabled}
?readonly=${props.readonly}
.value=${props.value}
.hideStepValues=${props.hideStepValues}
.hideValueLabel=${props.hideValueLabel}></uui-slider>
Expand Down Expand Up @@ -72,3 +74,8 @@ export const Disabled = Template.bind({});
Disabled.args = {
disabled: true,
};

export const Readonly = Template.bind({});
Readonly.args = {
readonly: true,
};

0 comments on commit 9baf2fa

Please sign in to comment.