mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-18 19:37:19 +02:00
feat: copy bech32
This commit is contained in:
19
src/components/ui/visually-hidden.tsx
Normal file
19
src/components/ui/visually-hidden.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
/**
|
||||
* VisuallyHidden component for accessibility
|
||||
* Hides content visually but keeps it available for screen readers
|
||||
*/
|
||||
export const VisuallyHidden = React.forwardRef<
|
||||
HTMLSpanElement,
|
||||
React.HTMLAttributes<HTMLSpanElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<span
|
||||
ref={ref}
|
||||
className={cn("sr-only", className)}
|
||||
{...props}
|
||||
/>
|
||||
));
|
||||
|
||||
VisuallyHidden.displayName = "VisuallyHidden";
|
||||
Reference in New Issue
Block a user