diff --git a/packages/components/src/disabled/stories/index.js b/packages/components/src/disabled/stories/index.js new file mode 100644 index 0000000000000..527c76899c652 --- /dev/null +++ b/packages/components/src/disabled/stories/index.js @@ -0,0 +1,31 @@ +/** + * Internal dependencies + */ +import Disabled from '../'; +import SelectControl from '../../select-control/'; +import TextControl from '../../text-control/'; +import TextareaControl from '../../textarea-control/'; + +export default { + title: 'Components/Disabled', + component: Disabled, +}; + +export const _default = () => { + return ( + + + + {} } + options={ [ + { value: null, label: 'Select an option', disabled: true }, + { value: 'a', label: 'Option A' }, + { value: 'b', label: 'Option B' }, + { value: 'c', label: 'Option C' }, + ] } + /> + + ); +}; diff --git a/storybook/test/__snapshots__/index.js.snap b/storybook/test/__snapshots__/index.js.snap index 58a2e69d13649..51813e68b7c3b 100644 --- a/storybook/test/__snapshots__/index.js.snap +++ b/storybook/test/__snapshots__/index.js.snap @@ -2590,6 +2590,95 @@ exports[`Storyshots Components/Dashicon Default 1`] = ` `; +exports[`Storyshots Components/Disabled Default 1`] = ` +
+
+
+ + +
+
+
+
+ +