Skip to content

Commit 0e9046e

Browse files
committed
visibility
1 parent 25d46a4 commit 0e9046e

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

docs/source/docs/visibility.blade.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Use `.invisible` to hide an element, but still maintain its space.
4242

4343
## Responsive
4444

45-
To apply an overflow utility only at a specific breakpoint, add a `{screen}:` prefix to the existing class name. For example, adding the class `md:overflow-scroll` to an element would apply the `overflow-scroll` utility at medium screen sizes and above.
45+
To apply a visibility utility only at a specific breakpoint, add a `{screen}:` prefix to the existing class name. For example, adding the class `md:invisible` to an element would apply the `invisible` utility at medium screen sizes and above.
4646

4747
For more information about Tailwind's responsive design features, check out the [Responsive Design](/docs/responsive-design) documentation.
4848

@@ -76,3 +76,37 @@ For more information about Tailwind's responsive design features, check out the
7676
<div class="none:visible sm:invisible md:visible lg:invisible xl:visible ..."></div>
7777
@endslot
7878
@endcomponent
79+
80+
## Customizing
81+
82+
### Responsive, Hover, and Focus Variants
83+
84+
By default, no hover, focus, or group-hover variants are generated for visibility utilities.
85+
86+
You can control which variants are generated for the visibility utilities by modifying the `visibility` property in the `modules` section of your Tailwind config file.
87+
88+
For example, this config will _also_ generate hover and focus variants:
89+
90+
```js
91+
{
92+
// ...
93+
modules: {
94+
// ...
95+
visibility: ['responsive', 'hover', 'focus'],
96+
}
97+
}
98+
```
99+
100+
### Disabling
101+
102+
If you aren't using the visibility utilities in your project, you can disable them entirely by setting the `visibility` property to `false` in the `modules` section of your config file:
103+
104+
```js
105+
{
106+
// ...
107+
modules: {
108+
// ...
109+
visibility: false,
110+
}
111+
}
112+
```

0 commit comments

Comments
 (0)