Skip to content

docs: Add Sortable Flex examples#559

Merged
MatiPl01 merged 5 commits into
mainfrom
docs/flex-examples
Jun 9, 2026
Merged

docs: Add Sortable Flex examples#559
MatiPl01 merged 5 commits into
mainfrom
docs/flex-examples

Conversation

@MatiPl01

@MatiPl01 MatiPl01 commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a Flex examples section to the docs, mirroring the existing Grid examples. Previously flex/examples.mdx just pointed users to the Grid examples; it is now a flex/examples/ folder (analogous to grid/examples/) with interactive examples:

  • Auto Scroll
  • Drop Indicator (default, custom style, custom component)
  • Item snap
  • Different Item Sizes
  • Touchable
  • Custom Handle
  • Fixed Items
  • Active Item Portal
  • Custom Shadow

Each example is implemented with Sortable.Flex (the children-based API) using wrapping pill items. The drop-indicator examples use theme-aware colours (visible in light and dark mode) and the custom-handle example disables pointer events on the handle icon — consistent with the equivalent Grid examples.

There are no result videos yet (the Grid examples have them); the interactive demos serve as the result.

Testing

  • yarn build (Docusaurus production build) passes.
  • prettier --check, eslint, and tsc pass on all new files.
  • Verified every example renders in the local docs in light and dark mode: pills wrap correctly; handles, delete buttons, fixed (grayed) items, the snap switch and the scroll container all render; and the custom-shadow items receive the animated box-shadow.

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-sortables-docs Ready Ready Preview, Comment Jun 9, 2026 2:43pm

Add a Flex examples section that mirrors the Grid examples, with
interactive examples for: auto scroll, drop indicator (default, custom
style and custom component), item snap, different item sizes, touchable,
custom handle, fixed items, active item portal and custom shadow.

The flex/examples.mdx pointer page (which just linked to the Grid
examples) is replaced by a flex/examples/ folder, analogous to
grid/examples/. The drop indicator examples use theme-aware colors and
the custom handle disables pointer events on the handle icon, matching
the equivalent Grid examples.
Mirror the grid active item portal example, which highlights the
PortalProvider and the toggle button in the displayed source.
@MatiPl01 MatiPl01 merged commit 0be8149 into main Jun 9, 2026
11 checks passed
@MatiPl01 MatiPl01 deleted the docs/flex-examples branch June 9, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant