@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
44 lines (34 loc) • 948 B
Markdown
# DrawerTrigger
**Type**: component
DrawerTrigger - Interactive element that opens the drawer The trigger element that users interact with to open the drawer. By default renders as a button, but can be composed with other elements using asChild. Supports all standard button attributes and event handlers.
## JSX Usage
```jsx
import { DrawerTrigger } from '@neynar/ui';
<DrawerTrigger
asChild={true}
>
{/* Your content here */}
</DrawerTrigger>
```
## Component Props
### asChild
- **Type**: `boolean`
- **Required**: No
- **Description**: No description available
### children
- **Type**: `React.ReactNode`
- **Required**: No
- **Description**: No description available
## Examples
### Example 1
```tsx
// Default button trigger
<DrawerTrigger>Open Drawer</DrawerTrigger>
```
### Example 2
```tsx
// Composed with custom button component
<DrawerTrigger asChild>
<Button variant="outline">Open Settings</Button>
</DrawerTrigger>
```