Skip to content

Commit

Permalink
Adding VisuallyHidden component
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Sep 23, 2024
1 parent 7032b5b commit 8dd8fb6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/react-visually-hidden": "^1.1.0",
"react-hook-form": "^7.53.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/components/VisuallyHidden/VisuallyHidden.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden'

export const VisuallyHidden = VisuallyHiddenPrimitive.Root
1 change: 1 addition & 0 deletions src/components/VisuallyHidden/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { VisuallyHidden } from './VisuallyHidden'
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ export { ThemeProvider, useTheme } from './ThemeProvider'
export { NetworkImage } from './NetworkImage'
export { TokenImage } from './TokenImage'
export { TooltipPrimitive, Tooltip } from './Tooltip'
export { VisuallyHidden } from './VisuallyHidden'

0 comments on commit 8dd8fb6

Please sign in to comment.