1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | import * as React from "react";
|
16 | var VisuallyHidden = React.forwardRef(function VisuallyHidden2({ as: Comp = "span", style = {}, ...props }, ref) {
|
17 | return React.createElement(Comp, {
|
18 | ref,
|
19 | style: {
|
20 | border: 0,
|
21 | clip: "rect(0 0 0 0)",
|
22 | height: "1px",
|
23 | margin: "-1px",
|
24 | overflow: "hidden",
|
25 | padding: 0,
|
26 | position: "absolute",
|
27 | width: "1px",
|
28 | whiteSpace: "nowrap",
|
29 | wordWrap: "normal",
|
30 | ...style
|
31 | },
|
32 | ...props
|
33 | });
|
34 | });
|
35 | VisuallyHidden.displayName = "VisuallyHidden";
|
36 | export {
|
37 | VisuallyHidden
|
38 | };
|