Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MarkToolbarButtonProps<V>

Type parameters

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 clear

clear: keyof TText | keyof TText[]

Node properties to delete.

icon

icon: any

Icon of the button.

Optional id

id: string

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.

type

type: string

Property used by Plate to render a node by type. It requires slate node properties to have a type property.

default

key

Generated using TypeDoc