31 lines
No EOL
1.8 KiB
JSON
31 lines
No EOL
1.8 KiB
JSON
{
|
|
"version": 1.1,
|
|
"tags": [
|
|
{
|
|
"name": "rc-icon",
|
|
"description": "Loads an icon asynchronously, caching the result for future uses",
|
|
"attributes": [
|
|
{ "name": "name", "description": "The name of the icon, this is relative to the assets folder of the dotdungeon system" },
|
|
{ "name": "path", "description": "The full path of the icon, this will only be used if `name` isn't provided or fails to fetch." },
|
|
{ "name": "var:size", "description": "The size of the icon, must be a valid CSS unit" },
|
|
{ "name": "var:fill", "description": "The fill of the icon, must be a valid CSS colour" },
|
|
{ "name": "var:stroke", "description": "The stroke colour of the icon, must be a valid CSS colour" },
|
|
{ "name": "var:stroke-width", "description": "The stroke width of the icon, must be a valid CSS unit" },
|
|
{ "name": "var:stroke-linejoin", "description": "The stroke linejoin of the icon, must be a valid CSS value" }
|
|
]
|
|
},
|
|
{
|
|
"name": "rc-svg",
|
|
"description": "Loads an icon asynchronously, caching the result for future uses",
|
|
"attributes": [
|
|
{ "name": "name", "description": "The name of the icon, this is relative to the assets folder of the dotdungeon system" },
|
|
{ "name": "path", "description": "The full path of the icon, this will only be used if `name` isn't provided or fails to fetch." },
|
|
{ "name": "var:size", "description": "The size of the icon, must be a valid CSS unit" },
|
|
{ "name": "var:fill", "description": "The fill of the icon, must be a valid CSS colour" },
|
|
{ "name": "var:stroke", "description": "The stroke colour of the icon, must be a valid CSS colour" },
|
|
{ "name": "var:stroke-width", "description": "The stroke width of the icon, must be a valid CSS unit" },
|
|
{ "name": "var:stroke-linejoin", "description": "The stroke linejoin of the icon, must be a valid CSS value" }
|
|
]
|
|
}
|
|
]
|
|
} |