Overview
You may group actions together into a dropdown menu by using anActionGroup object. Groups may contain many actions, or other groups:
Customizing the group trigger style
The button which opens the dropdown may be customized in the same way as a normal action. All the methods available for trigger buttons may be used to customize the group trigger button:Setting the placement of the dropdown
The dropdown may be positioned relative to the trigger button by using thedropdownPlacement() method:
Adding dividers between actions
You may add dividers between groups of actions by using nestedActionGroup objects:
dropdown(false) method puts the actions inside the parent dropdown, instead of a new nested dropdown.
Setting the width of the dropdown
The dropdown may be set to a width by using thedropdownWidth() method. Options correspond to Tailwind’s max-width scale. The options are ExtraSmall, Small, Medium, Large, ExtraLarge, TwoExtraLarge, ThreeExtraLarge, FourExtraLarge, FiveExtraLarge, SixExtraLarge and SevenExtraLarge:
Controlling the maximum height of the dropdown
The dropdown content can have a maximum height using themaxHeight() method, so that it scrolls. You can pass a CSS length:
Controlling the dropdown offset
You may control the offset of the dropdown using thedropdownOffset() method, by default the offset is set to 8.