Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editable paragraph #1334

Open
tobiasBora opened this issue Apr 28, 2024 · 2 comments
Open

Editable paragraph #1334

tobiasBora opened this issue Apr 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@tobiasBora
Copy link

tobiasBora commented Apr 28, 2024

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 tobiasBora added the enhancement New feature or request label Apr 28, 2024
@shinokada
Copy link
Collaborator

Try:

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

<P contenteditable>
	Here you are
</P>

@tobiasBora
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants