UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

30 lines (29 loc) 649 B
import { jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import { View } from "react-native"; const VisibilityHidden = forwardRef( ({ hide, ...props }, ref) => { return /* @__PURE__ */ jsx( View, { ...props, ref, "aria-hidden": hide, style: [ hide && { position: "absolute", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", wordWrap: "normal" }, props.style ] } ); } ); export { VisibilityHidden }; //# sourceMappingURL=VisibilityHidden.web.js.map