Block Parts
Invite Row
An email field and a role picker for inviting one person, with a button to remove the row.
Usage
Installation
npm install @wunderui/reactThen import what you need:
import { InviteRow, InviteRowProps } from "@wunderui/react"API Reference
| Prop | Type | Default |
|---|---|---|
| string | — | |
| role | string | — |
| roles | string[] | ["Admin", "Editor", "Viewer"] |
| onEmailChange | (email: string) => void | — |
| onRoleChange | (role: string) => void | — |
| onRemove | () => void | — |
| stacked | boolean | — |
| className | string | — |