Skip to content

Commit 61a808a

Browse files
committed
docs: update TailwindCSS usage instructions and fix Divider component styles
1 parent e22913a commit 61a808a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

demo/app/(mdx)/quick-start/page.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { ModalStackContainer } from "rc-modal-sheet/m"
4646
const App = () => <ModalStackContainer>{children}</ModalStackContainer>
4747
```
4848

49-
### Using with TailwindCSS
49+
### Using with TailwindCSS V3
5050

5151
If your project uses TailwindCSS, add the following configuration in `tailwind.config.js`:
5252

@@ -62,6 +62,16 @@ module.exports = {
6262
}
6363
```
6464

65+
### Using with TailwindCSS V4
66+
67+
If your project uses TailwindCSS, add the following configuration in `tailwind.config.js`:
68+
69+
```css
70+
/** style.css */
71+
72+
@source './node_modules/rc-modal-sheet/**/*.js'; /* The path of rc-modal lib location */
73+
```
74+
6575
### Using in Non-TailwindCSS Projects
6676

6777
If your project does not use TailwindCSS, you need to manually import the component's style file:

src/divider/Divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const Divider: FC<
1010
return (
1111
<hr
1212
className={clsxm(
13-
'my-4 h-[0.5px] border-0 bg-black !bg-opacity-30 dark:bg-white',
13+
'my-4 h-[0.5px] border-0 bg-black opacity-30 dark:bg-white',
1414
className,
1515
)}
1616
{...rest}

0 commit comments

Comments
 (0)