DEFAULT_TOOLBAR

const
Form & Input

Default ordered list of toolbar commands surfaced by OrigamTextarea when `mode="rich"` is set and no custom `toolbar` prop is provided. Order is meaningful — it drives the visual layout left-to-right.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

TEXTAREA_TOOLBAR_COMMAND.BOLD
Toggles bold formatting on the selected text.
TEXTAREA_TOOLBAR_COMMAND.ITALIC
Toggles italic formatting on the selected text.
TEXTAREA_TOOLBAR_COMMAND.UNDERLINE
Toggles underline formatting on the selected text.
TEXTAREA_TOOLBAR_COMMAND.LINK
Inserts or edits a hyperlink.
TEXTAREA_TOOLBAR_COMMAND.LIST_BULLET
Inserts an unordered (bullet) list.
TEXTAREA_TOOLBAR_COMMAND.LIST_ORDERED
Inserts an ordered (numbered) list.
TEXTAREA_TOOLBAR_COMMAND.HEADING
Inserts a heading element.
TEXTAREA_TOOLBAR_COMMAND.CODE_INLINE
Wraps the selection in an inline code element.
TEXTAREA_TOOLBAR_COMMAND.CLEAR_FORMAT
Removes all formatting from the selected text.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamTextarea

Usage

Examples

Ready-to-paste code snippets using this constant.

Customising the toolbar

typescript