Skip to content

Commit

Permalink
chore: added more exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
tewarig committed Feb 27, 2025
1 parent c22b422 commit c6136c0
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const DropdownStoryMeta = {

export const Default = (): React.ReactElement => {
return (
<Dropdown selectionType="multiple">
<Dropdown>
<DropdownFilterChip label="Filter Chip" />
<DropdownOverlay>
<ActionList>
Expand All @@ -37,4 +37,26 @@ export const Default = (): React.ReactElement => {
);
};

export const SelectionTypeMultiple = (): React.ReactElement => {
return (
<Dropdown selectionType="multiple">
<DropdownFilterChip
label="Filter Chip"
// onFilterValueChange={(value) => {
// console.log('value', value);
// }}
onClearButtonClick={(value) => {
console.log(value);
}}
/>
<DropdownOverlay>
<ActionList>
<ActionListItem title="Item 1" value="item-1" />
<ActionListItem title="Item 2" value="item-2" />
</ActionList>
</DropdownOverlay>
</Dropdown>
);
};

export default DropdownStoryMeta;

0 comments on commit c6136c0

Please sign in to comment.