diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/dialog/Examples.js b/packages/dnb-design-system-portal/src/docs/uilib/components/dialog/Examples.js index d36decb3ad7..0f6523423da 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/dialog/Examples.js +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/dialog/Examples.js @@ -4,6 +4,13 @@ */ import ComponentBox from 'dnb-design-system-portal/src/shared/tags/ComponentBox' +import { + trash_medium, + log_out_medium, + cookie_medium, + bell_medium, + edit, +} from '@dnb/eufemia/src/icons' export const DialogExampleDefault = () => ( @@ -140,3 +147,130 @@ export const DialogExampleProgressIndicator = () => ( `} ) + +export const DialogConfirmDefault = () => ( + + {() => /* jsx */ ` + {close();}} + triggerAttributes={{ + text: 'Trigger button', + }} +/>`} + +) + +export const DialogConfirmDelete = () => ( + + {() => /* jsx */ ` + {close();}} + triggerAttributes={{ + text: 'Delete record', + icon: trash_medium, + }} +/>`} + +) + +const loginHandler = () => {} + +export const DialogConfirmLoggedOut = () => ( + + {() => /* jsx */ ` +const Component = () => { + const [open, setOpen] = React.useState(false) + return ( + <> +