Skip to content

Commit 46e11b8

Browse files
committed
document named containers itself
1 parent b977f68 commit 46e11b8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,34 @@ module.exports = {
4444
</div>
4545
```
4646

47+
Named containers look like this:
48+
49+
```css
50+
/* `container/sidebar` results in: */
51+
.container\/sidebar {
52+
container-type: inline;
53+
container-name: sidebar;
54+
}
55+
56+
/* `container-inline/sidebar` results in: */
57+
.container-inline\/sidebar {
58+
container-type: inline;
59+
container-name: sidebar;
60+
}
61+
62+
/* `container-block/sidebar` results in: */
63+
.container-block\/sidebar {
64+
container-type: block;
65+
container-name: sidebar;
66+
}
67+
68+
/* `container-[size]/sidebar` results in: */
69+
.container-\[size\]\/sidebar {
70+
container-type: size;
71+
container-name: sidebar;
72+
}
73+
```
74+
4775
## Configuration
4876

4977
You can configure which values are available for this plugin under the `containers` key in your `tailwind.config.js` file:

0 commit comments

Comments
 (0)