Skip to content

Commit 87be2b8

Browse files
committed
docs: clarify where Toolbar's ref land for floating vs docked
1 parent f13b411 commit 87be2b8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎docs/src/data/componentDocs6x.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12072,7 +12072,7 @@
1207212072
}
1207312073
]
1207412074
},
12075-
"description": ""
12075+
"description": "For `floating`, the ref lands on the `Surface` pill itself; for\n`docked`, it lands on the outer positioning wrapper `View`, not the\npill inside it."
1207612076
}
1207712077
}
1207812078
},

‎src/components/Toolbar/Toolbar.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ export type Props = {
6363
* @optional
6464
*/
6565
theme?: ThemeProp;
66+
/**
67+
* For `floating`, the ref lands on the `Surface` pill itself; for
68+
* `docked`, it lands on the outer positioning wrapper `View`, not the
69+
* pill inside it.
70+
*/
6671
ref?: React.RefObject<View>;
6772
};
6873

0 commit comments

Comments
 (0)