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

    Interface CreateRoomDialogProps

    Props for the CreateRoomDialog component. A dialog for creating a new stored room.

    <CreateRoomDialog
    open={isOpen}
    onClose={() => setIsOpen(false)}
    onSave={async (options) => {
    await createRoom(options);
    setIsOpen(false);
    }}
    existingRoomNames={rooms.map(r => r.alias)}
    />
    interface CreateRoomDialogProps {
        entityLabels?: RoomsEntityLabels;
        existingRoomNames?: string[];
        isSaving?: boolean;
        labels?: Partial<CreateRoomDialogLabels>;
        onClose: () => void;
        onSave: (options: CreateStoredRoomOptions) => void | Promise<void>;
        open: boolean;
        showStaticOption?: boolean;
        showTargetUserIds?: boolean;
    }
    Index

    Properties

    entityLabels?: RoomsEntityLabels

    Entity labels for dynamic dialog text

    existingRoomNames?: string[]

    List of existing room names for duplicate validation

    isSaving?: boolean

    Whether a save operation is in progress

    labels?: Partial<CreateRoomDialogLabels>

    Custom labels for i18n support

    onClose: () => void

    Called when the dialog should close

    onSave: (options: CreateStoredRoomOptions) => void | Promise<void>

    Called when the form is submitted with room creation options

    open: boolean

    Whether the dialog is open

    showStaticOption?: boolean

    Whether to show the static room option

    true
    
    showTargetUserIds?: boolean

    Whether to show the target user IDs field

    false