(props: SheetTriggerProps)
| 205 | * A SheetTrigger opens a sheet when a trigger element is pressed. |
| 206 | */ |
| 207 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected