Carregando…
Carregando…
Carregando…Rich text editor with formatting toolbar (bold, italic, lists, etc.).
$ npx kikitocn add text-editorimport { TextEditor } from "@/components/ui/cn/text-editor/TextEditor";
export function TextEditorExample() {
return (
<TextEditor />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
value | string | — | HTML controlado |
defaultValue | string | — | HTML inicial |
onChange | (html: string) => void | — | Callback ao alterar conteúdo |
placeholder | string | — | Placeholder quando vazio |
ariaLabel | string | — | Nome acessível da região editável (leitor de tela); usa `placeholder` por padrão |
minHeight | number | 140 | Altura mínima do editor (px) |
disabled | boolean | false | Somente leitura |
className | string | — | Classes CSS extras |
style | CSSProperties | — | Estilos inline pro container |
Rich text editor with toolbar
Read-only content