@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
26 lines (25 loc) • 621 B
TypeScript
import React from 'react';
import { ButtonProps } from '@mui/material/Button';
import { IPermissionLevel } from '../../model';
type IButtonPicker = Omit<ButtonProps, 'disabled'> & {
/**
* is action sheet or menu opened
*/
open: boolean;
/**
* permission level to show
*/
permission?: IPermissionLevel;
/**
* If true, the buttons will be disabled.
*
*/
disabled?: boolean;
/**
* The tooltip message display on the disabled button
*
*/
disabledMessage?: string;
};
export declare const PermissionButton: React.FC<IButtonPicker>;
export {};