Components
The building blocks of the Common kit.
A Stimulus behavior that copies text to the clipboard — either a value you give it or the content of an element — with optional copied feedback.
A Stimulus behavior that removes its element from the page when dismissed, with optional delayed and automatic closing and an animated countdown bar.
A link that logs the current user out through a secure POST form.
A Stimulus behavior that shows the password typed in a field as plain text, or hides it again, from a toggle button.
A link submitted as a form, with optional HTTP method spoofing, CSRF protection, and a confirmation prompt.
A Stimulus behavior that reorders a list with drag-and-drop and, optionally, saves the new position of each moved item to your server. Powered by [SortableJS](https://sortablejs.github.io/Sortable/). Put it on any container, like a list, a table body or a grid, and its children become draggable.
A Stimulus behavior that shows a tooltip from a `content` value — or straight from an element's native `title`. Powered by [Floating UI](https://floating-ui.com/): the tooltip is rendered outside the trigger (appended to `<body>`), so it's never clipped by an `overflow` ancestor, and it flips and shifts to stay in view. Put it right on the trigger — it opens on hover and keyboard focus by default — and style the injected `.tooltip` once, globally.