We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69abefb commit 91c5a83Copy full SHA for 91c5a83
1 file changed
packages/ra-ui-materialui/src/input/BooleanInput.stories.tsx
@@ -18,12 +18,35 @@ export const Basic = () => (
18
</Wrapper>
19
);
20
21
-export const Disabled = () => (
+export const Disabled = ({
22
+ defaultValue,
23
+ disabled,
24
+}: {
25
+ defaultValue: boolean;
26
+ disabled: boolean;
27
+}) => (
28
<Wrapper>
- <BooleanInput source="published" disabled />
29
+ <BooleanInput
30
+ source="published"
31
+ defaultValue={defaultValue}
32
+ disabled={disabled}
33
+ />
34
35
36
37
+Disabled.argTypes = {
38
+ defaultValue: {
39
+ control: 'boolean',
40
+ },
41
+ disabled: {
42
43
44
+};
45
+Disabled.args = {
46
+ defaultValue: true,
47
+ disabled: true,
48
49
+
50
export const ReadOnly = () => (
51
52
<BooleanInput source="published" readOnly />
0 commit comments