@gluestack-ui/core
Version:
Universal UI components for React Native, Expo, and Next.js
7 lines • 322 B
JavaScript
import { useSwitch as useSwitchWeb } from '@react-aria/switch';
export function useSwitch(props, state, ref) {
const label = props.accessibilityLabel;
let temp = useSwitchWeb(Object.assign(Object.assign({}, props), { 'aria-label': label }), state, ref);
return temp;
}
//# sourceMappingURL=useSwitch.web.js.map