Portaled ARIA menu with bounded anchored positioning.
@combric/react · v1.1.1 · Current
Import and usage
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from "@combric/react";
Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.
Examples
Actions menu
Position and alignment
Public API
Public exports| Name |
|---|
DropdownMenu |
DropdownMenuTrigger |
DropdownMenuContent |
DropdownMenuItem |
DropdownMenuSeparator |
Documented contracts| Property / capability | Published contract |
|---|
| side | top | right | bottom | left |
|---|
| align | start | center | end |
|---|
| Contract | onSelect |
|---|
Accessibility
Implements menu/menuitem roles, skips disabled items, and restores focus after keyboard dismissal.
Keyboard
Arrow keys wrap; Home/End move; Enter/Space select; Escape restores focus; Tab closes.
CSS and customization
Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.
Source
View source on GitHub