You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca613db
Browse filesBrowse the repository at this point in the historyBrowse files
feat(TreeList): rows expand and collapse the way an iOS outline list does
A UIKit outline list (iOS 26.2) slides a row's children out from under it as
one block inside a clip that grows with them, moves the rows below with
them, and turns the disclosure chevron 90°, all on one critically damped
spring (response 0.25 s), with no fade; collapse runs it back, and Reduce
Motion keeps it. On a touch screen a TreeList row now does the same on the
compositor: the group clips its own box for the motion, its children
translate from the group's height above it, every row after the group
translates with them, and the chevron turns by an additive rotate over its
final transform, all played by the motion foundation's animator and
retargeted from the value on screen. A collapse keeps the children rendered,
inert and skipped by the arrow keys, until they have slid away. TreeList
renders a row's children lazily for that. With a mouse nothing moves.
[feat] On a touch screen, a `TreeList` row's children slide out from under it as it expands, with the rows below moving down alongside and the chevron turning, and slide back under it as it collapses, as in an iOS outline list. They used to appear and vanish in a single frame. The motion runs on the compositor and keeps going while the page runs script. Lists driven by a mouse are unchanged.
Copy file name to clipboardExpand all lines: packages/core/src/TreeList/TreeList.doc.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ export const docs = {
137
137
usage: {
138
138
anatomy,
139
139
description:
140
-
'An expandable tree structure for displaying hierarchical data with branch connector lines. Use it for file explorers, nested category browsers, or any interface that visualizes parent-child relationships.',
140
+
'An expandable tree structure for displaying hierarchical data with branch connector lines. Use it for file explorers, nested category browsers, or any interface that visualizes parent-child relationships. On a touch screen, a row\'s children slide out from under it as it expands, and back under it as it collapses, as in an iOS outline list.',
141
141
bestPractices: [
142
142
{guidance: true,description: 'Provide meaningful labels and icons for each node to make the hierarchy easy to scan.'},
143
143
{guidance: true,description: 'Pre-expand important branches so users see key content immediately.'},
0 commit comments