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

Function DragHandleButton

packages/@react-spectrum/s2/src/dnd-utils.tsx:117–127  ·  view source on GitHub ↗
({isFocusVisibleWithin}: {isFocusVisibleWithin: boolean})

Source from the content-addressed store, hash-verified

115});
116
117export function DragHandleButton({isFocusVisibleWithin}: {isFocusVisibleWithin: boolean}) {
118 let {visuallyHiddenProps} = useVisuallyHidden();
119 return (
120 <Button
121 slot="drag"
122 style={!isFocusVisibleWithin ? visuallyHiddenProps.style : {}}
123 className={dragButton}>
124 <DragHandle size="M" />
125 </Button>
126 );
127}

Callers

nothing calls this directly

Calls 1

useVisuallyHiddenFunction · 0.90

Tested by

no test coverage detected