This repository has been archived on 2026-10-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mortar/manifests/mortar-dropdown.json
T
tony 43fe76158c
Mortar contribution checks / Mortar baseline and browser checks (push) Successful in 3m15s
Extract independent MIT Mortar kit and contribution workflow
2026-10-13 22:16:21 +01:00

40 lines
1.3 KiB
JSON

{
"id": "mortar-dropdown",
"logicalId": "dropdown",
"name": "Dropdown",
"description": "Mortar foundation dropdown, using central semantic tokens.",
"stack": "react-tailwind",
"package": "@tony-ui/mortar",
"version": "0.1.0",
"export": "Dropdown",
"source": "src/primitives.tsx",
"capabilities": ["theme", "foundation", "action", "keyboard"],
"owner": "Mortar maintainers",
"kitId": "foundation",
"provenance": {
"kitId": "foundation",
"exampleId": "mortar-foundation-reference",
"sourceDigest": "f132052b4ac52f3909ac437073c076b9f615849effea14dabf7d30759d714c2d"
},
"contract": {
"props": {
"label": "string",
"items": "{ label: string; onSelect: () => void; danger?: boolean; disabled?: boolean }[]"
},
"states": [
"Light",
"Dark",
"Neutral brand",
"Green brand",
"Keyboard and focus"
],
"usage": "Import { Dropdown } from @tony-ui/mortar. Compose with the public typed props.",
"avoid": "Do not copy implementations, override central colours or grant component approval.",
"accessibility": "Verify accessible names, keyboard interaction, visible focus, responsive layout and supported states.",
"dependencies": []
},
"preview": {
"source": "previews/DropdownPreview.tsx"
}
}