flowbite-svelte
flowbite-svelte copied to clipboard
Editable paragraph
Summary
Ant-design provides an "editable" function like:
<Paragraph editable={{ onChange: setEditableStr }}>{editableStr}</Paragraph>
that allows you to click on an icon next to a text to edit it like in:
Motivation
This is really practical as I often want to allow the user to modify a paragraph while displaying it like a regular text.
Try:
<script>
import { P } from 'flowbite-svelte'
</script>
<P contenteditable>
Here you are
</P>
Who, awesome, thanks a lot! Would it be possible to document it?