-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.py
38 lines (36 loc) · 982 Bytes
/
demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from reactpy import html
from dukkha.components import Stack, Button, Checkbox, Input, Select
demos = {
"Button": lambda: Stack(
html._(
Button("Submit"),
Button("Submit", variant="secondary"),
Button("Submit", variant="tertiary"),
Button("Submit", variant="danger"),
Button("Submit", disabled=True),
Button("Submit", compact=True),
),
),
"Checkbox": lambda: Stack(
html._(
Checkbox("Checkbox"),
Checkbox("Checkbox", disabled=True),
)
),
"Input": lambda: Stack(
html._(
Input(placeholder="Placeholder"),
Input(placeholder="Placeholder", disabled=True),
)
),
"Select": lambda: Stack(
html._(
Select(
html._(
html.option("Option 1"),
html.option("Option 1"),
)
)
)
),
}