@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
54 lines (42 loc) • 1.01 kB
Markdown
# PopoverTrigger
**Type**: component
PopoverTrigger - The element that triggers the popover
## JSX Usage
```jsx
import { PopoverTrigger } from '@neynar/ui';
<PopoverTrigger
asChild={true}
className="value"
disabled={true}
>
{/* Your content here */}
</PopoverTrigger>
```
## Component Props
### asChild
- **Type**: `boolean`
- **Required**: No
- **Description**: Changes the default rendered element to the one passed as a child,
### children
- **Type**: `React.ReactNode`
- **Required**: No
- **Description**: No description available
### className
- **Type**: `string`
- **Required**: No
- **Description**: No description available
### disabled
- **Type**: `boolean`
- **Required**: No
- **Description**: No description available
## Examples
```tsx
// Using asChild with custom button
<PopoverTrigger asChild>
<Button variant="outline">Open Settings</Button>
</PopoverTrigger>
// Direct usage (renders as button)
<PopoverTrigger className="custom-trigger">
Click me
</PopoverTrigger>
```