-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiv-container.json
More file actions
133 lines (133 loc) · 3.17 KB
/
div-container.json
File metadata and controls
133 lines (133 loc) · 3.17 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"version": "1.1.0",
"component_kind": null,
"elements": [
{
"type": "h1",
"content": [
"Div Container Example"
]
},
{
"type": "p",
"content": [
"This shows how div elements can contain nested content and be styled."
]
},
{
"type": "div",
"elements": [
{
"type": "h2",
"content": [
"Card Title"
]
},
{
"type": "p",
"content": [
" ",
" This is some content inside a styled div container.",
" ",
" ",
" ",
" "
]
},
{
"type": "div",
"elements": [
{
"type": "span",
"elements": [
{
"type": "p",
"content": [
{
"type": "strong",
"content": [
"Important note:"
]
}
]
}
]
},
{
"type": "p",
"content": [
" Div elements can contain any nested content including text, headers, forms, and other divs.",
" ",
" "
]
}
],
"style": {
"backgroundColor": "rgb(254,243,199)",
"padding": "0.75rem",
"marginTop": "1rem",
"borderRadius": "0.25rem",
"borderColor": "rgb(245,158,11)"
}
},
{
"type": "form",
"elements": [
{
"type": "input",
"content": [],
"attributes": {
"name": "message",
"placeholder": "Enter your feedback"
}
},
{
"type": "button",
"elements": [
{
"type": "p",
"content": [
"Submit"
]
}
],
"style": {
"backgroundColor": "rgb(59,130,246)",
"color": "rgb(255,255,255)",
"paddingLeft": "1rem",
"paddingRight": "1rem",
"paddingTop": "0.5rem",
"paddingBottom": "0.5rem",
"borderRadius": "0.25rem",
"marginTop": "0.5rem"
}
}
],
"event": "@submit_feedback"
}
],
"elementId": "card-container",
"style": {
"backgroundColor": "rgb(255,255,255)",
"padding": "1.5rem",
"borderRadius": "0.5rem",
"borderWidth": "1px"
}
}
],
"type": "hypernote",
"title": "Div Container Demo",
"description": "Demonstrates nested div containers with styling",
"name": "div-container",
"style": {
"padding": "1rem",
"backgroundColor": "rgb(243,244,246)"
},
"events": {
"@submit_feedback": {
"kind": 1,
"content": "Thanks for your feedback: {form.message}",
"tags": []
}
}
}