Editor Toolbar
ClearFormattingButton
Remove all inline formatting from the selected text.
Install
npx typix ui add clear-formatting-buttonImport
import { ClearFormattingButton } from "@/components/typix/main/clear-formatting-button";Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | Override the button label. |
hideWhenUnavailable | boolean | false | Hide when there is no formatting to clear. |
showShortcut | boolean | true | Show keyboard shortcut in tooltip. |
onCleared | () => void | — | Called after formatting is cleared. |
className | string | — | Additional CSS classes. |