@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
18 lines (17 loc) • 620 B
TypeScript
/// <reference types="react" />
import { jsx } from '@emotion/react';
import type { NewCoreIconProps } from '@atlaskit/icon/types';
export interface ButtonOptionProps {
title: string;
selected: boolean;
testId: string;
disabled: boolean;
tooltipContent?: string | null;
onClick: () => void;
icon: (props: NewCoreIconProps) => JSX.Element;
iconFallback: (props: NewCoreIconProps) => JSX.Element;
}
export interface LinkToolbarButtonGroupProps {
options: ButtonOptionProps[];
}
export declare const LinkToolbarButtonGroup: ({ options }: LinkToolbarButtonGroupProps) => jsx.JSX.Element;