@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
42 lines (41 loc) • 1.05 kB
JSON
{
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag.json",
"title": "Tag",
"description": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.",
"meta": {
"category": "navigation",
"documentationUrl": "https://spectrum.adobe.com/page/tag/"
},
"type": "object",
"properties": {
"label": {
"type": "string"
},
"hasAvatar": {
"type": "boolean",
"default": false
},
"isRemovable": {
"type": "boolean",
"default": false
},
"isError": {
"type": "boolean",
"default": false
},
"isDisabled": {
"type": "boolean",
"default": false
},
"isReadOnly": {
"type": "boolean",
"default": false
},
"state": {
"type": "string",
"enum": ["default", "hover", "down", "keyboard focus"],
"default": "default"
}
}
}