diff --git a/packages/samples/react/src/components/split-button/basic.tsx b/packages/samples/react/src/components/split-button/basic.tsx index 36eee7dd04..203a9582f3 100644 --- a/packages/samples/react/src/components/split-button/basic.tsx +++ b/packages/samples/react/src/components/split-button/basic.tsx @@ -1,13 +1,24 @@ +import { ToasterService } from '@public-ui/components'; import React, { FC } from 'react'; import { KolSplitButton } from '@public-ui/react'; +const toaster = ToasterService.getInstance(document); + export const SplitButtonBasic: FC = () => { + const handleButtonClick = () => { + void toaster.enqueue({ + description: 'The Button has been clicked.', + label: `Button Clicked`, + type: 'info', + }); + }; + return (
- + Drowndown-Inhalt - + Drowndown-Inhalt