MCPcopy Index your code
hub / github.com/adobe/react-spectrum / Button

Function Button

packages/react-aria/stories/table/example-docs.tsx:164–176  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

162}
163
164function Button(props) {
165 let ref = props.buttonRef;
166 let {focusProps, isFocusVisible} = useFocusRing();
167 let {buttonProps} = useButton(props, ref);
168 return (
169 <button
170 {...mergeProps(buttonProps, focusProps)}
171 ref={ref}
172 className={classNames(ariaStyles, props.className, {focus: isFocusVisible})}>
173 {props.children}
174 </button>
175 );
176}
177
178function Resizer(props) {
179 let {column, layoutState, onResizeStart, onResize, onResizeEnd} = props;

Callers

nothing calls this directly

Calls 4

useFocusRingFunction · 0.90
useButtonFunction · 0.90
mergePropsFunction · 0.90
classNamesFunction · 0.90

Tested by

no test coverage detected