Border Collapse
Controls the collapsing or separation of table borders
Class | Properties |
---|---|
bc-c | border-collapse: collapse; |
bc-s | border-collapse: separate; |
Collapse
The table borders will be merged.
<table class="b-1 bc-l-silver-1 bc-c w-full"> <tr> <td class="b-1 bc-l-silver-1 p-2">A</td> <td class="b-1 bc-l-silver-1 p-2">B</td> </tr> <tr> <td class="b-1 bc-l-silver-1 p-2">C</td> <td class="b-1 bc-l-silver-1 p-2">D</td> </tr></table>
Separate
Each table cell will have its own border.
<table class="b-1 bc-l-silver-1 bc-s w-full"> <tr> <td class="b-1 bc-l-silver-1 p-2">A</td> <td class="b-1 bc-l-silver-1 p-2">B</td> </tr> <tr> <td class="b-1 bc-l-silver-1 p-2">C</td> <td class="b-1 bc-l-silver-1 p-2">D</td> </tr></table>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Responsive breakpoints
You can combine responsive breakpoints like sm:bs-*
,md:bs-*
, lg:bs-*
, and xxl:bs-*
allows targeting specific utilities in
different viewports.
<div class="bs-s md:bc-c ..."></div>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Hover states
Alternatively, you can apply :hover
by using h:bs-*
utility to override elements
and change their values when hovering over them.
<div class="bs-s h:bc-c ..."></div>