flowbite-svelte icon indicating copy to clipboard operation
flowbite-svelte copied to clipboard

Editable paragraph

Open tobiasBora opened this issue 1 year ago • 2 comments

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:

Peek 28-04-2024 17-40

Motivation

This is really practical as I often want to allow the user to modify a paragraph while displaying it like a regular text.

tobiasBora avatar Apr 28 '24 15:04 tobiasBora

Try:

<script>
	import { P } from 'flowbite-svelte'
</script>

<P contenteditable>
	Here you are
</P>

shinokada avatar Apr 29 '24 06:04 shinokada

Who, awesome, thanks a lot! Would it be possible to document it?

tobiasBora avatar Apr 29 '24 08:04 tobiasBora