diff --git a/spec/__snapshots__/Storyshots.test.js.snap b/spec/__snapshots__/Storyshots.test.js.snap index 4d389392..5ae13bf8 100644 --- a/spec/__snapshots__/Storyshots.test.js.snap +++ b/spec/__snapshots__/Storyshots.test.js.snap @@ -10316,7 +10316,7 @@ exports[`Storyshots Components/Selects/Single Custom Option With Checkbox 1`] = >
Select...
Select...
Select...
Select...
`; +exports[`Storyshots Components/Selects/Single Grouped Options 1`] = ` +
+
+ +
+ + +
+
+
+ Select... +
+ +
+
+ + +
+
+
+
+
+`; + exports[`Storyshots Components/Selects/Single In Modal 1`] = `
( @@ -112,6 +110,34 @@ export const InModal = () => ( ); +export const GroupedOptions = () => { + const groupedOptions = [ + { + label: 'Study type', + options, + }, + { + label: 'Audience type', + options: [ + { label: 'Consumers', value: 5 }, + { label: 'Professionals', value: 6 }, + ], + }, + ]; + return ( + + + + ); +}; + export const CustomOptionWithDescription = () => { const optionsWithDescriptions = [ {