Hiyve Components - v1.0.0
    Preparing search index...

    Interface InviteLinkDialogProps

    Props for the InviteLinkDialog component.

    This component provides a dialog for creating and sharing invite links. It can be used as a standalone dialog or triggered via an icon button.

    function RoomControls({ roomName }: { roomName: string }) {
    const [open, setOpen] = useState(false);

    return (
    <>
    <IconButton onClick={() => setOpen(true)}>
    <ShareIcon />
    </IconButton>
    <InviteLinkDialog
    roomName={roomName}
    open={open}
    onClose={() => setOpen(false)}
    />
    </>
    );
    }
    interface InviteLinkDialogProps {
        baseUrl?: string;
        colors?: Partial<InviteLinkDialogColors>;
        icons?: Partial<InviteLinkDialogIcons>;
        joinPath?: string;
        labels?: Partial<InviteLinkDialogLabels>;
        onClose: () => void;
        onCopySuccess?: () => void;
        onError?: (error: Error) => void;
        open: boolean;
        roomName: string;
        styles?: Partial<InviteLinkDialogStyles>;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    baseUrl?: string

    Base URL for invite links (default: window.location.origin)

    colors?: Partial<InviteLinkDialogColors>

    Custom colors

    icons?: Partial<InviteLinkDialogIcons>

    Custom icons

    joinPath?: string

    Path for join page (default: '/join')

    labels?: Partial<InviteLinkDialogLabels>

    Custom labels for i18n support

    onClose: () => void

    Callback when dialog is closed

    onCopySuccess?: () => void

    Callback when link is copied successfully

    onError?: (error: Error) => void

    Callback when link generation fails

    open: boolean

    Whether the dialog is open

    roomName: string

    Room name to create invite for

    styles?: Partial<InviteLinkDialogStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx prop for dialog styling