diff --git a/core/components/molecules/popover/__stories__/Layering.story.jsx b/core/components/molecules/popover/__stories__/Layering.story.jsx index 46e56f5a66..c9df745f96 100644 --- a/core/components/molecules/popover/__stories__/Layering.story.jsx +++ b/core/components/molecules/popover/__stories__/Layering.story.jsx @@ -1,30 +1,84 @@ import * as React from 'react'; -import { Button, Popover, Dropdown } from '@/index'; +import { Button, Popover, Select } from '@/index'; // CSF format story +const options = [ + { label: 'Draft', value: 'draft' }, + { label: 'In Progress', value: 'in_progress' }, + { label: 'Sent', value: 'sent' }, + { label: 'Scheduled', value: 'scheduled' }, + { label: 'Partially Failed', value: 'partially_failed' }, + { label: 'Completely Failed', value: 'completely_failed' }, +]; + export const layering = () => { return (
Open Popover} open={false}>
- +
); }; +const customCode = `() => { + const options = [ + { label: 'Draft', value: 'draft' }, + { label: 'In Progress', value: 'in_progress' }, + { label: 'Sent', value: 'sent' }, + { label: 'Scheduled', value: 'scheduled' }, + { label: 'Partially Failed', value: 'partially_failed' }, + { label: 'Completely Failed', value: 'completely_failed' }, + ]; + + return ( +
+ Open Popover} open={false}> +
+ +
+
+
+ ); +} +`; + export default { title: 'Components/Popover/Layering', component: Popover, @@ -32,6 +86,7 @@ export default { docs: { docPage: { noHtml: true, + customCode, }, }, },