Typix LogoTypix
Editor Toolbar

ClearFormattingButton

Remove all inline formatting from the selected text.

Install

npx typix ui add clear-formatting-button

Import

import { ClearFormattingButton } from "@/components/typix/main/clear-formatting-button";

Props

PropTypeDefaultDescription
textstringOverride the button label.
hideWhenUnavailablebooleanfalseHide when there is no formatting to clear.
showShortcutbooleantrueShow keyboard shortcut in tooltip.
onCleared() => voidCalled after formatting is cleared.
classNamestringAdditional CSS classes.

On this page