|
@@ -138,7 +138,7 @@ export const Description = (args: Args) => {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const Icon = (args: Args) => {
|
|
|
|
|
|
|
+export const LeadingIcon = (args: Args) => {
|
|
|
return (
|
|
return (
|
|
|
<DropdownMenu show>
|
|
<DropdownMenu show>
|
|
|
<OLDropdownMenuItem
|
|
<OLDropdownMenuItem
|
|
@@ -175,6 +175,14 @@ export const Icon = (args: Args) => {
|
|
|
eventKey="5"
|
|
eventKey="5"
|
|
|
href="#/action-5"
|
|
href="#/action-5"
|
|
|
leadingIcon="align_space_even"
|
|
leadingIcon="align_space_even"
|
|
|
|
|
+ description="Some description"
|
|
|
|
|
+ >
|
|
|
|
|
+ With a description
|
|
|
|
|
+ </OLDropdownMenuItem>
|
|
|
|
|
+ <OLDropdownMenuItem
|
|
|
|
|
+ eventKey="6"
|
|
|
|
|
+ href="#/action-6"
|
|
|
|
|
+ leadingIcon="align_space_even"
|
|
|
className="dropdown-item-material-icon-small"
|
|
className="dropdown-item-material-icon-small"
|
|
|
>
|
|
>
|
|
|
Small icon
|
|
Small icon
|
|
@@ -183,6 +191,33 @@ export const Icon = (args: Args) => {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export const TrailingIcon = (args: Args) => {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <DropdownMenu show>
|
|
|
|
|
+ <OLDropdownMenuItem eventKey="1" href="#/action-1" trailingIcon="check">
|
|
|
|
|
+ Tick
|
|
|
|
|
+ </OLDropdownMenuItem>
|
|
|
|
|
+ <OLDropdownMenuItem
|
|
|
|
|
+ eventKey="2"
|
|
|
|
|
+ href="#/action-2"
|
|
|
|
|
+ trailingIcon="check"
|
|
|
|
|
+ description="Some description"
|
|
|
|
|
+ >
|
|
|
|
|
+ With a description
|
|
|
|
|
+ </OLDropdownMenuItem>
|
|
|
|
|
+ <OLDropdownMenuItem
|
|
|
|
|
+ eventKey="3"
|
|
|
|
|
+ href="#/action-3"
|
|
|
|
|
+ leadingIcon="align_space_even"
|
|
|
|
|
+ trailingIcon="check"
|
|
|
|
|
+ description="Some description"
|
|
|
|
|
+ >
|
|
|
|
|
+ With a leading icon
|
|
|
|
|
+ </OLDropdownMenuItem>
|
|
|
|
|
+ </DropdownMenu>
|
|
|
|
|
+ )
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const meta: Meta<typeof DropdownMenu> = {
|
|
const meta: Meta<typeof DropdownMenu> = {
|
|
|
title: 'Shared / Components / Bootstrap 5 / DropdownMenu',
|
|
title: 'Shared / Components / Bootstrap 5 / DropdownMenu',
|
|
|
component: DropdownMenu,
|
|
component: DropdownMenu,
|