x
1
2
3
4
5
6
7
8
9
10
<div class="p-8 max-w-xl"> <div class="midwest-rich-text midwest-form-group type-rich-text"> <div class="midwest-form-group__top"> <label class="midwest-label " for="post_body-e3a0"> Body </label> </div> <input type="hidden" name="post_body" id="trix_input_8" autocomplete="off" /><trix-editor id="post_body-e3a0" data-midwest-rich-text-target="editor" data-direct-upload-url="https://midwest.unabridged-staging.com/rails/active_storage/direct_uploads" data-blob-url-template="https://midwest.unabridged-staging.com/rails/active_storage/blobs/redirect/:signed_id/:filename" input="trix_input_8" class="trix-content"></trix-editor> </div></div>1
2
3
<div class="p-8 max-w-xl"> <%= midwest_form_rich_text(name: 'post_body', label: 'Body') %></div>Default
An ActionText (Trix) editor wrapped in the standard Midwest field chrome — same label, description, and error affordances as every other input. The toolbar and editor are fully restyled to match a Midwest text field.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Rich Text/default
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."