Skip to content

Commit 78777bf

Browse files
authored
Update how_to_use.md
1 parent 6ca07f4 commit 78777bf

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

how_to_use.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,19 @@ This guide will show you how to drop UltraHTML into your project and get fancy b
55

66
---
77

8-
## 📦 1. Include the Files
8+
## 📦 1. Include the Files and initialize UltraHTML
99

1010
No builds, no bundlers — just link the files directly.
1111

1212
```html
1313
<link rel="stylesheet" href="dist/ultra.css" />
14-
<script src="dist/ultra.js" defer></script>
14+
<script src="dist/ultra.js" onload="Ultra.init()" defer></script>
1515
````
1616

1717
Make sure `ultra.js` is loaded after the DOM (`defer` or load it at the bottom).
1818

1919
---
2020

21-
## 🚀 2. Initialize UltraHTML
22-
23-
Run this **once** after your page loads:
24-
25-
```html
26-
<script>
27-
Ultra.init();
28-
</script>
29-
```
30-
31-
It sets up ripple effects, tab switching, and chip dismissal.
32-
33-
---
34-
3521
## 🖱️ 3. Use Components
3622

3723
### ✅ Buttons

0 commit comments

Comments
 (0)