MCPcopy Create free account
hub / github.com/adobe/react-spectrum / SheetTrigger

Function SheetTrigger

packages/react-aria-components/src/Sheet.tsx:207–214  ·  view source on GitHub ↗
(props: SheetTriggerProps)

Source from the content-addressed store, hash-verified

205 * A SheetTrigger opens a sheet when a trigger element is pressed.
206 */
207export function SheetTrigger(props: SheetTriggerProps) {
208 return (
209 <DialogTrigger {...props}>
210 {/* Prevent the trigger element from appearing stuck while the sheet is open. */}
211 <PressResponder isPressed={false}>{props.children}</PressResponder>
212 </DialogTrigger>
213 );
214}
215
216// Additional padding added to the viewport to account for browser toolbar.
217// More content than 100lvh is actually visible on iOS, even when the toolbar is collapsed.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected