The Hidden
component is a utility component that will help you hide or show content/components in different viewports.
Attention: Use Hidden only to control behaviour in a responsive manner. It does not take any sx
props.
<Hidden when="narrow"><Placeholder height="80px" label="This is not visible in narrow viewport" /></Hidden>
when
prop<Hidden when={['narrow', 'wide']}><Placeholder height="80px" label="This is not visible in narrow and wide viewport" /></Hidden>
Name | Type | Default | Description |
---|---|---|---|
when | string or Array | Can be one or more values of 'narrow', 'wide', 'regular' |