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
textstring—Override the button label.
hideWhenUnavailablebooleanfalseHide when there is no formatting to clear.
showShortcutbooleantrueShow keyboard shortcut in tooltip.
onCleared() => void—Called after formatting is cleared.
classNamestring—Additional CSS classes.

On this page