View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Rich Text
Tiptap editor with optional toolbar, HTML or JSON submission and app-managed image uploads
Default
<hw:rich-text />
Toolbar variants
Use the classic toolbar or pass a constrained toolbar list.
<div class="space-y-4">
<hw:rich-text toolbar="classic" />
<hw:rich-text :toolbar="['bold', 'italic']" />
</div>
Initial value and read-only preview
<div class="space-y-4">
<hw:rich-text
name="content"
placeholder="Write something..."
value="Hello world!"
/>
<hw:rich-text name="preview" :editable="false" value="Hello world!" />
</div>
JSON output
Store ProseMirror JSON instead of HTML.
<hw:rich-text name="content" output="json" value="Hello world!" />