docs framework: tocs, contents, highlighter

This commit is contained in:
2024-11-19 20:53:54 +08:00
parent ab9fe5f242
commit a6ee301d5b
13 changed files with 271 additions and 98 deletions

View File

@ -1,25 +1,31 @@
# Button
Buttons are used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
---
description: Create a button component with different variants and colors
---
## Usage
```html
<RayButton>Click me</RayButton>
```
Default button style
---
::DocExampleBlock
test
#code
console.log('Hello Rayine')
::ComponentPreview
Button
::
::RayButton
### Variants
::ComponentPreview
---
color: red
props:
variant: soft
---
Hello Rayine
Button
::
### Colors
::ComponentPreview
---
props:
color: violet
---
Button
::