reactjs-tiptap-editor
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
29 lines (28 loc) • 1.01 kB
TypeScript
import { default as React } from 'react';
import { TooltipContentProps } from '@radix-ui/react-tooltip';
import { ButtonViewReturnComponentProps } from '../types';
export interface ActionMenuButtonProps {
/** Icon name to display */
icon?: any;
/** Button title text */
title?: string;
/** Tooltip text */
tooltip?: string;
/** Tooltip options */
tooltipOptions?: TooltipContentProps;
/** Whether the button is disabled */
disabled?: boolean;
/** Keyboard shortcut keys */
shortcutKeys?: string[];
/** Button color */
color?: string;
/** Click action handler */
action?: ButtonViewReturnComponentProps['action'];
/** Active state checker */
isActive?: ButtonViewReturnComponentProps['isActive'];
/** Whether to render as child */
asChild?: boolean;
dataState?: boolean;
}
declare const ActionMenuButton: React.ForwardRefExoticComponent<ActionMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
export { ActionMenuButton };