UNPKG

@loke/ui

Version:
26 lines (25 loc) • 869 B
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>> & { displayName: string; }; declare const Root: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>> & { displayName: string; }; export type { VisuallyHiddenProps }; export { Root, VISUALLY_HIDDEN_STYLES, VisuallyHidden, };