feat(tabs): enhance tab styles and improve active code tab handling (#712)

* feat(tabs): enhance tab styles with sliding indicators and hover effects

* feat(tabs): improve active code tab handling and initialization logic
This commit is contained in:
Cell
2026-03-12 11:41:52 +08:00
committed by GitHub
parent f2c112e402
commit c8d028aa0e
4 changed files with 164 additions and 38 deletions
+13
View File
@@ -40,6 +40,19 @@ def sum(a, b):
print(sum(1, 2))
```
## Active Tab
```js {group=tab-active name="Inactive Tab"}
function greet(name) {
return `Hello, ${name}!`
}
```
```python {group=tab-active name="Active Tab" .active}
def greet(name):
return f"Hello, {name}!"
```
## Mode
```ts {group=tab-mode name="Classic"}