Skip to content

Commit 16c08bd

Browse files
pfultoncastastrophe
authored andcommitted
docs: add Dial stories to provide more state coverage
1 parent 3ea49eb commit 16c08bd

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

components/dial/stories/dial.stories.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Template } from "./template";
33

44
export default {
55
title: "Components/Dial",
6-
description: "A dial for turning it up to 11.",
6+
description: "A dial is an input control used for selecting a value within a range, similar to a slider. It's often used in audio and video mixing and editing applications, where horizontal space is limited.",
77
component: "Dial",
88
argTypes: {
99
size: {
@@ -71,5 +71,25 @@ export default {
7171
},
7272
};
7373

74-
export const Default = Template.bind({});
74+
export const Default = Template.bind();
7575
Default.args = {};
76+
77+
export const DefaultExpress = Template.bind();
78+
DefaultExpress.args = {
79+
express: true,
80+
};
81+
82+
export const Small = Template.bind();
83+
Small.args = {
84+
size: "s",
85+
}
86+
87+
export const WithLabel = Template.bind();
88+
WithLabel.args = {
89+
label: "Volume",
90+
};
91+
92+
export const Disabled = Template.bind();
93+
Disabled.args = {
94+
isDisabled: true,
95+
}

0 commit comments

Comments
 (0)