Skip to content

Commit be936ca

Browse files
casperiv0dannifyLFDanLu
authored
docs: add missing import for @react-aria/switch (#2634)
* docs: add missing import * docs: fix quotes * docs: remove duplicate import Co-authored-by: Danni <[email protected]> Co-authored-by: Daniel Lu <[email protected]>
1 parent 5e55d7a commit be936ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/@react-aria/switch/docs/useSwitch.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink} from '@re
1818
import packageData from '@react-aria/switch/package.json';
1919
import Anatomy from './anatomy.svg';
2020

21-
```jsx import
22-
import {useSwitch} from '@react-aria/switch';
23-
```
24-
2521
---
2622
category: Forms
2723
keywords: [switch, input, checkbox, aria]
@@ -91,6 +87,7 @@ indicate focus. The focus ring is only visible when the user is interacting with
9187
not with a mouse or touch.
9288

9389
```tsx example
90+
import {useSwitch} from '@react-aria/switch';
9491
import {VisuallyHidden} from '@react-aria/visually-hidden';
9592
import {useToggleState} from '@react-stately/toggle';
9693
import {useFocusRing} from '@react-aria/focus';

0 commit comments

Comments
 (0)