Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ToolbarLinkProps

Hierarchy

Index

Properties

Optional active

active: boolean

Is it active.

Optional as

as: string | Element

Optional classNames

classNames: RootClassName & Record<"active", string>

Class names for the root component and the subcomponents.

Optional getLinkUrl

getLinkUrl: (prevUrl: null | string) => Promise<null | string>

Default onMouseDown is getting the link url by calling this promise before inserting the image.

Type declaration

    • (prevUrl: null | string): Promise<null | string>
    • Parameters

      • prevUrl: null | string

      Returns Promise<null | string>

icon

icon: any

Icon of the button.

Optional onMouseDown

onMouseDown: MouseEventHandler<HTMLSpanElement>

Optional prefixClassNames

prefixClassNames: string

Optional styles

styles: Partial<RootStyles> & Partial<{ active?: CSSProp<any> }>

Customized styling that will layer on top of the default rules.

Optional tooltip

tooltip: TippyProps

Tooltip props. If not provided, tooltip is disabled.

Generated using TypeDoc