User Invites
<UserInviteButton/>

User Invite Button UI Component

Introduction

The <UserInviteButton /> component renders a button which opens a lightbox. The user can then invite other users.

user-invite-button

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(){}}
        />
    );
}
PropTypeDescription
onInviteErrorfunction(error)Error callback when sending the invite fails.
onInviteSuccessfunction(data)Success callback when sending the invite success.