Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as React from 'react';
import { useSwitch_unstable } from './useSwitch';
import { renderSwitch_unstable } from './renderSwitch';
import { useSwitchStyles_unstable } from './useSwitchStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Switches enable users to trigger an option on or off through pressing the component.
*/ export const Switch = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useSwitch_unstable(props, ref);
useSwitchStyles_unstable(state);
useCustomStyleHook_unstable('useSwitchStyles_unstable')(state);
return renderSwitch_unstable(state);
});
Switch.displayName = 'Switch';