1 | import * as React from 'react';
|
2 | import { Breakpoint } from '@mui/system';
|
3 | export interface HiddenProps {
|
4 | /**
|
5 | * The content of the component.
|
6 | */
|
7 | children?: React.ReactNode;
|
8 | /**
|
9 | * Specify which implementation to use. 'js' is the default, 'css' works better for
|
10 | * server-side rendering.
|
11 | * @default 'js'
|
12 | */
|
13 | implementation?: 'js' | 'css';
|
14 | /**
|
15 | * You can use this prop when choosing the `js` implementation with server-side rendering.
|
16 | *
|
17 | * As `window.innerWidth` is unavailable on the server,
|
18 | * we default to rendering an empty component during the first mount.
|
19 | * You might want to use a heuristic to approximate
|
20 | * the screen width of the client browser screen width.
|
21 | *
|
22 | * For instance, you could be using the user-agent or the client-hints.
|
23 | * https://caniuse.com/#search=client%20hint
|
24 | */
|
25 | initialWidth?: Breakpoint;
|
26 | /**
|
27 | * If `true`, component is hidden on screens below (but not including) this size.
|
28 | * @default false
|
29 | */
|
30 | lgDown?: boolean;
|
31 | /**
|
32 | * If `true`, component is hidden on screens this size and above.
|
33 | * @default false
|
34 | */
|
35 | lgUp?: boolean;
|
36 | /**
|
37 | * If `true`, component is hidden on screens below (but not including) this size.
|
38 | * @default false
|
39 | */
|
40 | mdDown?: boolean;
|
41 | /**
|
42 | * If `true`, component is hidden on screens this size and above.
|
43 | * @default false
|
44 | */
|
45 | mdUp?: boolean;
|
46 | /**
|
47 | * Hide the given breakpoint(s).
|
48 | */
|
49 | only?: Breakpoint | Breakpoint[];
|
50 | /**
|
51 | * If `true`, component is hidden on screens below (but not including) this size.
|
52 | * @default false
|
53 | */
|
54 | smDown?: boolean;
|
55 | /**
|
56 | * If `true`, component is hidden on screens this size and above.
|
57 | * @default false
|
58 | */
|
59 | smUp?: boolean;
|
60 | /**
|
61 | * If `true`, component is hidden on screens below (but not including) this size.
|
62 | * @default false
|
63 | */
|
64 | xlDown?: boolean;
|
65 | /**
|
66 | * If `true`, component is hidden on screens this size and above.
|
67 | * @default false
|
68 | */
|
69 | xlUp?: boolean;
|
70 | /**
|
71 | * If `true`, component is hidden on screens below (but not including) this size.
|
72 | * @default false
|
73 | */
|
74 | xsDown?: boolean;
|
75 | /**
|
76 | * If `true`, component is hidden on screens this size and above.
|
77 | * @default false
|
78 | */
|
79 | xsUp?: boolean;
|
80 | }
|
81 | /**
|
82 | *
|
83 | * Demos:
|
84 | *
|
85 | * - [Hidden](https://mui.com/material-ui/react-hidden/)
|
86 | *
|
87 | * API:
|
88 | *
|
89 | * - [PigmentHidden API](https://mui.com/material-ui/api/pigment-hidden/)
|
90 | */
|
91 | declare function PigmentHidden({ implementation, ...props }: HiddenProps & {
|
92 | className?: string;
|
93 | }): React.JSX.Element;
|
94 | declare namespace PigmentHidden {
|
95 | var propTypes: any;
|
96 | }
|
97 | export default PigmentHidden;
|