Skip to content

Commit 65eeab6

Browse files
committed
feat: add static elements web types
1 parent 5cc8913 commit 65eeab6

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

src/main/resources/META-INF/webTypes.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,63 @@
66
"default-icon": "icon",
77
"contributions": {
88
"html": {
9+
"elements": [
10+
{
11+
"name": "x-base",
12+
"description": "A base template you can install into your own project as a starting point. This one includes the Tailwind CDN for quick prototyping.",
13+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-base"
14+
},
15+
{
16+
"name": "x-form",
17+
"description": "This component provides a form element that will post by default and includes the csrf token out of the box.",
18+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-form"
19+
},
20+
{
21+
"name": "x-input",
22+
"description": "A versatile input component that will render labels and validation errors automatically.",
23+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-input"
24+
},
25+
{
26+
"name": "x-submit",
27+
"description": "A submit button component that prefills with a \"Submit\" label.",
28+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-submit"
29+
},
30+
{
31+
"name": "x-csrf-token",
32+
"description": "Includes the CSRF token in a form.",
33+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-csrf-token"
34+
},
35+
{
36+
"name": "x-icon",
37+
"description": "This component provides the ability to inject any icon from the Iconify project in your templates.",
38+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-icon"
39+
},
40+
{
41+
"name": "x-vite-tags",
42+
"description": "Tempest has built-in support for Vite, the most popular front-end development server and build tool. This component simply inject registered entrypoints where it is called.",
43+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-vite-tags"
44+
},
45+
{
46+
"name": "x-template",
47+
"description": "",
48+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-template"
49+
},
50+
{
51+
"name": "x-slot",
52+
"description": "",
53+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-slot"
54+
},
55+
{
56+
"name": "x-markdown",
57+
"description": "",
58+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-markdown"
59+
},
60+
{
61+
"name": "x-component",
62+
"description": "",
63+
"doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-component"
64+
}
65+
],
966
"attributes": [
1067
{
1168
"name": ":if",

0 commit comments

Comments
 (0)