Skip to content

Commit

Permalink
feat: Finish attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Dec 7, 2024
1 parent fe58560 commit e0ad589
Showing 1 changed file with 112 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@
]
}
},
{
"name": "data-intersect",
"description": "Executes an expression on intersection with the viewport.",
"doc-url": "https://data-star.dev/guide/getting_started#data-intersect",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-intersect"
],
"priority": "normal"
}
},
{
"name": "data-on-*",
"description": "Executes an expression whenever an event is triggered on an element.",
Expand All @@ -153,6 +169,22 @@
]
}
},
{
"name": "data-persist",
"description": "Persists all signals in local storage.",
"doc-url": "https://data-star.dev/guide/getting_started#data-persist",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-persist"
],
"priority": "normal"
}
},
{
"name": "data-ref-*",
"description": "Creates a signal whose value references an element.",
Expand Down Expand Up @@ -182,6 +214,22 @@
]
}
},
{
"name": "data-replace-url",
"description": "Replaces the URL in the browser with an evaluated expression.",
"doc-url": "https://data-star.dev/guide/getting_started#data-replace-url",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-replace-url"
],
"priority": "normal"
}
},
{
"name": "data-signals-*",
"description": "Merges a signal into the existing signals.",
Expand Down Expand Up @@ -213,6 +261,70 @@
}
]
}
},
{
"name": "data-scroll-into-view",
"description": "Scrolls the element into view.",
"doc-url": "https://data-star.dev/guide/getting_started#data-scroll-into-view",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-scroll-into-view"
],
"priority": "normal"
}
},
{
"name": "data-show",
"description": "Shows or hides an element based on whether an expression evaluates to `true` or `false`.",
"doc-url": "https://data-star.dev/reference/plugins_browser#show",
"value": {
"kind": "expression",
"type": "boolean",
"required": true
},
"pattern": {
"template": [
"data-show"
],
"priority": "normal"
}
},
{
"name": "data-text",
"description": "Sets the text content of an element to the evaluated expression.",
"doc-url": "https://data-star.dev/reference/plugins_dom#text",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-text"
],
"priority": "normal"
}
},
{
"name": "data-view-transition",
"description": "Sets the value of `view-transition-name` for use with the View Transition API.",
"doc-url": "https://data-star.dev/reference/plugins_browser#view-transition",
"value": {
"kind": "expression",
"type": "string",
"required": true
},
"pattern": {
"template": [
"data-view-transition"
],
"priority": "normal"
}
}
],
"elements": [
Expand Down

0 comments on commit e0ad589

Please sign in to comment.