@pretextbook/web-editor 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/index.d.ts +1 -0
- package/dist/web-editor.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,14 +40,20 @@ export default App;
|
|
|
40
40
|
|
|
41
41
|
### Styling
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
**Important:** This package uses Tailwind CSS internally, but **all styles are pre-compiled and bundled** in the CSS file. You don't need to install or configure Tailwind CSS in your project.
|
|
44
|
+
|
|
45
|
+
Simply import the CSS file:
|
|
44
46
|
|
|
45
|
-
**Option 1: Import the CSS file directly** (recommended)
|
|
46
47
|
```tsx
|
|
47
48
|
import '@pretextbook/web-editor/dist/web-editor.css';
|
|
48
49
|
```
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
Or in your CSS file:
|
|
52
|
+
```css
|
|
53
|
+
@import '@pretextbook/web-editor/dist/web-editor.css';
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
All button styles, layout, and MenuBar styling will work automatically without any additional setup.
|
|
51
57
|
```css
|
|
52
58
|
@import '@pretextbook/web-editor/dist/web-editor.css';
|
|
53
59
|
```
|
package/dist/index.d.ts
CHANGED