Spinner
The DropdownMenu component supports loading states using the DropdownMenu.Spinner component. This is useful when the dropdown content is being loaded asynchronously.
Properties
Spinner
The Spinner component displays a loading indicator within the dropdown menu.
<DropdownMenu.Spinner className="my-class" // [OPTIONAL] custom class> {/* Optional children content */}</DropdownMenu.Spinner>Prop | Required | Default | Type |
|---|---|---|---|
| className | false | string | |
| children | false | ReactNode |