User Invite Button UI Component
Introduction
The <UserInviteButton />
component renders a button which opens a lightbox. The user can then invite other users.
See this component in action on Storybook (opens in a new tab).
Integration
ℹ️
Before you can use these UI Components, please do the basic setup.
You can integrate the <UserInviteButton/>
component using this code:
import {UserInviteButton} from '@roq/ui-react';
function App() {
return (
<UserInviteButton
onInviteError={function noRefCheck(){}}
onInviteSuccess={function noRefCheck(){}}
/>
);
}
Prop | Type | Description |
---|---|---|
onInviteError | function(error) | Error callback when sending the invite fails. |
onInviteSuccess | function(data) | Success callback when sending the invite success. |