@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
37 lines (27 loc) • 794 B
Markdown
# MenubarTrigger
**Type**: component
Button that opens a dropdown menu. The trigger text should be concise and descriptive of the menu contents. Common patterns include "File", "Edit", "View", "Tools", "Help". Automatically receives focus management and keyboard navigation.
## JSX Usage
```jsx
import { MenubarTrigger } from '@neynar/ui';
<MenubarTrigger
className="value"
asChild={true}
/>
```
## Component Props
### className
- **Type**: `string`
- **Required**: No
- **Description**: Additional CSS classes to apply to the trigger button
### asChild
- **Type**: `boolean`
- **Required**: No
- **Description**: Change the default rendered element for the one passed as a child, merging their props and behavior
## Examples
```tsx
<MenubarTrigger>
File
</MenubarTrigger>
```
/