20CAKE20.JS
06-components

Components

23

06-components/TextEditor.tsx

Text Editor

Support

Support source used by the official components examples.

export const refs = {
  input: element<HTMLTextAreaElement>(),
};

export const expose = {
  focus: () => refs.input.focus(),
};

export default () => <textarea ref={refs.input} class="rounded border p-2" />;