Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
|
raw
history blame
872 Bytes

Basic Dropdown

<Dropdown>
  <Dropdown.Trigger>Menu</Dropdown.Trigger>
  <Dropdown.Menu>
    <Dropdown.Item>Profile</Dropdown.Item>
    <Dropdown.ItemDivider />
    <Dropdown.Item>Logout</Dropdown.Item>
  </Dropdown.Menu>
</Dropdown>

Dropdown Variations

<Dropdown
  type="button"
  toggle={false}
  color="primary"
  arrow
  icon="globe"
  triggerContent="Button"
  itemsObject={[
    {
      value: "Profile",
    },
    { isDivider: true },
    { value: "Logout" },
  ]}
/>

Dropdown Items

<Dropdown
  type="button"
  color="primary"
  arrow
  icon="globe"
  triggerContent="Item Icons and Badges"
  itemsObject={[
    {
      value: "Profile",
      icon: "user",
    },
    {
      value: "Notifications",
      badge: "New!",
      badgeType: "success",
    },
    { isDivider: true },
    { value: "Logout" },
  ]}
/>