-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathbox.ws.ts
More file actions
58 lines (57 loc) · 1.03 KB
/
box.ws.ts
File metadata and controls
58 lines (57 loc) · 1.03 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
import { BoxIcon } from "@webstudio-is/icons/svg";
import { defaultStates, type WsComponentMeta } from "@webstudio-is/sdk";
import {
div,
address,
article,
aside,
figure,
footer,
header,
main,
nav,
section,
} from "@webstudio-is/sdk/normalize.css";
import { props } from "./__generated__/box.props";
export const meta: WsComponentMeta = {
category: "general",
description:
"A container for content. By default this is a Div, but the tag can be changed in settings.",
icon: BoxIcon,
states: defaultStates,
presetStyle: {
div,
address,
article,
aside,
figure,
footer,
header,
main,
nav,
section,
},
order: 0,
initialProps: ["tag", "id", "class"],
props: {
...props,
tag: {
required: true,
control: "tag",
type: "string",
options: [
"div",
"header",
"footer",
"nav",
"main",
"section",
"article",
"aside",
"address",
"figure",
"span",
],
},
},
};