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

    Custom action button configuration for toolbar.

    const customAction: CustomToolbarAction = {
    icon: <AddIcon />,
    label: 'New Whiteboard',
    onClick: () => createWhiteboard(),
    color: 'primary'
    };

    <FileManager customAction={customAction} />
    interface CustomToolbarAction {
        color?:
            | "error"
            | "primary"
            | "secondary"
            | "info"
            | "success"
            | "warning";
        disabled?: boolean;
        icon: ReactNode;
        label: string;
        onClick: () => void;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    color?: "error" | "primary" | "secondary" | "info" | "success" | "warning"

    Button color variant

    disabled?: boolean

    Whether button is disabled

    icon: ReactNode

    Icon to display on the button

    label: string

    Button label text

    onClick: () => void

    Click handler

    sx?: SxProps<Theme>

    Additional sx styles