Skip to content

Commit aec19fc

Browse files
madsrasmusseniOvergaard
authored andcommitted
chore: add story for readonly state of uui-slider
1 parent 9379cc1 commit aec19fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/uui-slider/lib/uui-slider.story.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default {
1717
hideValueLabel: false,
1818
value: 0,
1919
disabled: false,
20+
readonly: false,
2021
},
2122
argTypes: {
2223
label: {
@@ -38,6 +39,7 @@ const Template: Story = props => html`
3839
min=${props.min}
3940
max=${props.max}
4041
?disabled=${props.disabled}
42+
?readonly=${props.readonly}
4143
.value=${props.value}
4244
.hideStepValues=${props.hideStepValues}
4345
.hideValueLabel=${props.hideValueLabel}></uui-slider>
@@ -72,3 +74,8 @@ export const Disabled = Template.bind({});
7274
Disabled.args = {
7375
disabled: true,
7476
};
77+
78+
export const Readonly = Template.bind({});
79+
Readonly.args = {
80+
readonly: true,
81+
};

0 commit comments

Comments
 (0)