@loke/ui
Version:
22 lines (21 loc) • 807 B
TypeScript
import { Primitive } from "@loke/ui/primitive";
import React from "react";
declare const VISUALLY_HIDDEN_STYLES: Readonly<{
border: 0;
clip: "rect(0, 0, 0, 0)";
height: 1;
margin: -1;
overflow: "hidden";
padding: 0;
position: "absolute";
whiteSpace: "nowrap";
width: 1;
wordWrap: "normal";
}>;
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
interface VisuallyHiddenProps extends PrimitiveSpanProps {
}
declare const VisuallyHidden: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
declare const Root: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
export { VisuallyHidden, Root, VISUALLY_HIDDEN_STYLES, };
export type { VisuallyHiddenProps };