UNPKG

@stratakit/react

Version:

A React component library for StrataKit

19 lines (18 loc) 671 B
import { jsx } from "react/jsx-runtime"; import * as React from "react"; import { VisuallyHidden as SkVisuallyHidden } from "@stratakit/bricks"; import { useCompatProps } from "./~utils.js"; const VisuallyHidden = React.forwardRef((props, forwardedRef) => { const { children, // biome-ignore-start lint/correctness/noUnusedVariables: NOT IMPLEMENTED unhideOnFocus, // biome-ignore-end lint/correctness/noUnusedVariables: NOT IMPLEMENTED ...rest } = useCompatProps(props); return /* @__PURE__ */ jsx(SkVisuallyHidden, { ...rest, ref: forwardedRef, children }); }); DEV: VisuallyHidden.displayName = "VisuallyHidden"; export { VisuallyHidden };