UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

36 lines (34 loc) 837 B
import { Slot } from "./chunk-4F5DOL57.mjs"; // src/visually-hidden/VisuallyHidden.tsx import { jsx } from "react/jsx-runtime"; var VisuallyHidden = ({ asChild = false, ref, ...props }) => { const Component = asChild ? Slot : "span"; return /* @__PURE__ */ jsx( Component, { ...props, ref, style: { // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss position: "absolute", border: 0, width: 1, height: 1, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", wordWrap: "normal", ...props.style } } ); }; VisuallyHidden.displayName = "VisuallyHidden"; export { VisuallyHidden }; //# sourceMappingURL=chunk-NBZKMCHF.mjs.map