Textarea
FormA styled multi-line text editor wrapping Iced's text_editor widget.
Preview
Usage
textarea.rs
use floe_ui::components::textarea;
use iced::widget::text_editor;
"text-zinc-500">// Create editor content in your state
let content = text_editor::Content::new();
"text-zinc-500">// Create styled textarea
let editor = textarea::styled(&self.content, Message::EditorAction, &tokens);API Reference
Props / Parameters
| Name | Type | Description |
|---|---|---|
| content | &text_editor::Content | Editor content state |
| on_action | Fn(Action) -> Message | Callback on editor actions |
| tokens | &DesignTokens | Design tokens for theming |
Style Functions
default_style(tokens)
Style functions return closures compatible with Iced's .style() method.
Builder Functions
styled(content, on_action, tokens)
Builder functions return pre-configured Iced widgets ready for use.
Source: floe-ui/src/components/textarea.rs