This page demonstrates some of the experiences that Pragmatic drag and drop enables. These examples use a combination of our core package and optional packages.
We have created simple list example which does not leverage any other Atlassian Design System outputs.
, (opens new window)In order to demonstrate how to use Pragmatic drag and drop on different tech stacks, the community has ported this simple list example to various tech stacks:
List example ports
These examples have been contributed by a mixture of Atlassian and non-Atlassian contributors. Please use caution when viewing and running these examples.
Technologies | Source | Standalone example | Author(s) |
---|---|---|---|
React + TailwindCSS | Github | Run on StackBlitz | @alexandereardon |
TailwindCSS | Github | Run on StackBlitz | @alexandereardon |
SolidJS + TailwindCSS | Github | Run on StackBlitz | @dotnize |
Vue 3 + TailwindCSS | Github | Run on StackBlitz | @frenicohansen |
Vue 3 + Nuxt 3 (SSR) + TailwindCSS | Github | Run on StackBlitz | @frenicohansen |
This grid example does a simple "swap" when dropping. You can do whatever operations you like with grids (including inserting items based on closest edge). This example does not currently have accessibility wired up.
Needs updating
Our table example does not line up with our latest design guidelines and needs to be updated.
Status | Description | Assignee |
---|---|---|
In Progress | Generated description 0 | Vania |
In Progress | Generated description 1 | Alexander |
Done | Generated description 2 | Aliza |
Todo | Generated description 3 | Alvin |
In Progress | Generated description 4 | Angie |
In Progress | Generated description 5 | Arjun |
Todo | Generated description 6 | Blair |
Done | Generated description 7 | Claudia |
Todo | Generated description 8 | Colin |
Done | Generated description 9 | Ed |
Done | Generated description 10 | Effie |
Todo | Generated description 11 | Eliot |
In Progress | Generated description 12 | Fabian |
In Progress | Generated description 13 | Gael |
Todo | Generated description 14 | Gerard |
In Progress | Generated description 15 | Hasan |
Todo | Generated description 16 | Helena |
Done | Generated description 17 | Ivan |
Done | Generated description 18 | Katina |
In Progress | Generated description 19 | Lara |
Use the external adapter to capture files that users drag and drop onto the page.
When requesting files, you should also provide an <input type="file" />
for usability and
accessibility reasons.
Excepted from Success Criterion 2.1.1 - Keyboard (Level A)
This example is excepted from the WCAG Success Criterion 2.1.1 - Keyboard (Level A). The underlying function (freehand drawing) requires input that depends on the path of the user's movement and not just the endpoints.
Due to Success Criterion 2.1.3 - Keyboard (No Exception) (Level AAA), path-dependent input cannot meet Guideline 2.1 at Level AAA.
Wherever possible, this exception should not be relied on, and an alternative input method should be provided.
Accessibility guidance in progress
An investigation is required to decide on appropriate accessible controls for resizing. If you would like us to prioritise this investigation, please reach out.
Pragmatic drag an drop works with any virtual experience: you can add, remove or change any entity you want during a drag operation. This example uses TanStack Virtual, but you can use any virtualization solution you like.
See our virtualization guide for more details.
Pragmatic drag and drop enables you to attach data for external systems (other brower tabs, iframes or even native applications), as well as respond to and recieve data being dragged from external systems.
External example
atlassian.design
currently does not support displaying an example without the page layout, so our
iframe example is hosted on another site.