Skip to content

Commit

Permalink
move to section
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 3, 2025
1 parent 69cf94b commit b5f308c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docs/pages/components/divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ import SlDivider from '@shoelace-style/shoelace/dist/react/divider';
const App = () => <SlDivider />;
```

:::tip
Using TailwindCSS with Shoelace [may override divider styles](https://github.com/shoelace-style/shoelace/issues/2088), making them invisible. As a workaround, add this to your TailwindCSS input file:

```css
@layer base {
sl-divider:not([vertical]) {
border-top: solid var(--width) var(--color);
}

sl-divider[vertical] {
border-left: solid var(--width) var(--color);
}
}
```
:::

## Examples

### Width
Expand Down Expand Up @@ -171,4 +155,20 @@ const App = () => (
);
```

{% endraw %}
### Tailwind users

Using TailwindCSS with Shoelace [may override divider styles](https://github.com/shoelace-style/shoelace/issues/2088), making them invisible. As a workaround, add this to your Tailwind config file.

```css
@layer base {
sl-divider:not([vertical]) {
border-top: solid var(--width) var(--color);
}

sl-divider[vertical] {
border-left: solid var(--width) var(--color);
}
}
```

{% endraw %}

0 comments on commit b5f308c

Please sign in to comment.