Files
medusa-store/www/apps/ui/specs/components/CurrencyInput/CurrencyInput.json
2025-08-20 12:36:57 +03:00

60 lines
1.3 KiB
JSON

{
"description": "This component is based on the input element and supports all of its props",
"methods": [],
"displayName": "CurrencyInput",
"props": {
"symbol": {
"required": true,
"tsType": {
"name": "string"
},
"description": "The symbol to show in the input."
},
"code": {
"required": true,
"tsType": {
"name": "string"
},
"description": "The currency code to show in the input."
},
"size": {
"defaultValue": {
"value": "\"base\"",
"computed": false
},
"description": "The input's size.",
"tsType": {
"name": "union",
"raw": "\"small\" \\| \"base\"",
"elements": [
{
"name": "literal",
"value": "\"small\""
},
{
"name": "literal",
"value": "\"base\""
}
]
},
"required": false
},
"disabled": {
"description": "Whether the input is disabled.\n\n\n",
"tsType": {
"name": "boolean"
},
"defaultValue": {
"value": "false",
"computed": false
}
},
"onInvalid": {
"description": "A function that is triggered when the input is invalid."
}
},
"composes": [
"Omit",
"VariantProps"
]
}