docs/components/navigation/Dropdown

Dropdown

Trigger with floating menu.

import { Dropdown } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
items *DropdownItem[]Array of menu items to display.
trigger *JSX.ElementTrigger element that opens the dropdown when clicked.
classstringAdditional CSS class name for the dropdown content.
unstyledbooleanfalseDisable default styling and apply only custom classes.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border
  • --sk-duration-fast
  • --sk-duration-instant
  • --sk-error
  • --sk-font-size-base
  • --sk-icon-md
  • --sk-radius-md
  • --sk-radius-sm
  • --sk-shadow-md
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-primary
  • --sk-z-popover