Inline Cta from the Get IT Done design system.
Inline Cta from the Get IT Done design system.
Inline Edit from the Get IT Done design system.
ویرایش درجا: کلیک یا Enter برای ویرایش، Enter ثبت، Esc انصراف
Select a span of a document, say how it should change, and watch the replacement stream in beside the struck-out original. Nothing changes until you accept it.
Handles read, edit, save, error, and commit states inside shared geometry.
Click-to-edit text that stays where it is: a value shown as plain text with a pencil affordance that swaps to an input in the same spot when activated, commits on Enter or blur, and reverts on Escape — no dialog, drawer or separate edit form. Reach for it wherever one field is edited far more often than the rest of the record: renaming a project, board, list, folder, file or column header, a kanban or issue card title, a document or dashboard name, a cell in a table or data grid, a display name, bio or label in profile and settings, an environment or API key nickname, a saved view or filter name, a playlist or collection title. Common asks it answers: "inline edit react", "click to edit text", "edit in place", "editable text component", "editable label", "rename inline", "inline rename react", "double-click to rename", "contenteditable alternative", "react-contenteditable alternative", "editable table cell react", "inline edit input shadcn", "shadcn editable text", "notion-style inline editing", "click to edit title". Official shadcn/ui has nothing in this area, and it is worth stating precisely: across all 63 of its components the words contentEditable, editable, dblclick, rename, select() and setSelectionRange do not appear once, and its input is a twenty-line bare <input> with no state of any kind. So what gets written inline is an Input plus a boolean, and the boolean is where the bugs are. The one nobody catches is focus. Enter and Escape unmount the input while it still holds focus, so focus falls to <body>, and the next Tab restarts at the top of the page — the user renames a card, presses Enter, presses Tab, and is somewhere in the site header. Here a keyboard exit hands focus back to the trigger it came from, while a blur exit deliberately does not, because focus has already gone where the user put it. The trigger is a real <button>, so it is in the tab order and opens on Enter or Space; a <div onClick> version, which is what gets hand-rolled, is invisible to the keyboard entirely. The input focuses and selects itself on entry so typing replaces the value rather than appending to it. onSave is called with the trimmed draft and only when it actually differs from the value — clicking in and back out fires nothing, which matters because in a real app that callback is a network request and a row in an audit log, once per stray click. Escape restores the original, and the draft is re-seeded from value on every entry, so reopening after a cancel does not show the abandoned text. An empty value renders muted placeholder text rather than a zero-width button nobody can find and click. Both halves are named for a screen reader — "Edit {label}" on the trigger and {label} on the input — because the visible text that named the field is exactly what disappears when it becomes an input. saveOnBlur (default true) is the switch between committing on blur and requiring an explicit Enter, which is the right choice when the save is expensive or destructive. What it deliberately is not: it is an <input>, so it is single line — reach for a textarea for a description — and onSave is fire-and-forget, with no pending or error state of its own, so wrap it if the save can fail. Within pulld it is distinct from copy-field, which is a read-only value beside a copy button, from floating-label-input and autosize-textarea, which are form fields that are always fields, and from slug-input, which transforms as you type. Controlled through value + onSave; disabled leaves the tab order; every colour is a shadcn token (input, accent, ring, muted-foreground) so it follows light and dark; one file, one lucide icon, no other dependency.
Rename in place: the text becomes a field without moving.
Text that becomes an input in place, saves optimistically, then draws a tick.
Text that turns into a field in place with confirm and cancel buttons, validation, an async save and focus returned to the text afterwards.
Rename in place: the text becomes a field without moving.
Text you edit where it shows: press it, Enter or F2 to edit, Enter to save, Escape to cancel, with validation and optional Save and Cancel buttons.
Edits text in place and keeps the draft when the save fails.
Editar onde se lê. Enter salva, Esc cancela, o valor só troca depois que a promessa resolve.
Confirm or reject a local action in a polite live region without interrupting the workflow.
An Inline Hint is a lightweight, non-intrusive UI pattern that provides helpful guidance, clarification, or best-practice advice directly within or immediately adjacent to a form field, input, or interactive element, without requiring the user to leave the current context.
A grouped list section for settings-style rows with flexible leading and trailing addons.
A sheet from the bottom or the start, or a centred dialog, drawn inside its container instead of over the page: a backdrop and Escape close it, and a bottom sheet can be pulled down by its grip.
A range filter slider with its label and value inside the track, for screeners and GPU marketplaces filtering memory, cores and price.
Testimonial quotes woven into a paragraph that expand inline on hover or focus.
A flowing quote stream where each avatar reveals its author on hover, with Motion fading and blurring the rest.
Testimonials rendered as inline flowing text with circular avatars. Hover to blur others and reveal the author's name and role.
Error message that does not shove the form.
Places pending, error, and success states next to the input.
Async checks that spin, then draw a tick or strike a cross, without flicker.
Showing 15,409–15,432 of 30,929
Showing 15,409–15,432 of 30,929