@hmcts/annotation-ui-lib
Version:
PDF Viewer and ability to highlight text with and comment tracking
93 lines • 2.63 kB
JSON
[
{
"name": "id",
"type": "string",
"required": true,
"description": "Id for each select box."
},
{
"name": "name",
"type": "string",
"required": true,
"description": "Name property for the select."
},
{
"name": "items",
"type": "array",
"required": true,
"description": "Array of option items for the select.",
"params": [
{
"name": "value",
"type": "string",
"required": false,
"description": "Value for the option item."
},
{
"name": "text",
"type": "string",
"required": true,
"description": "Text for the option item."
},
{
"name": "selected",
"type": "boolean",
"required": false,
"description": "Sets the option as the selected."
},
{
"name": "disabled",
"type": "boolean",
"required": false,
"description": "Sets the option item as disabled."
}
]
},
{
"name": "label",
"type": "object",
"required": false,
"description": "Label text or HTML by specifying value for either text or html keys.",
"isComponent": true
},
{
"name": "hint",
"type": "object",
"required": false,
"description": "Options for the hint component.",
"isComponent": true
},
{
"name": "errorMessage",
"type": "object",
"required": false,
"description": "Options for the errorMessage component (e.g. text).",
"isComponent": true
},
{
"name": "formGroup",
"type": "object",
"required": false,
"description": "Options for the form-group wrapper",
"params": [
{
"name": "classes",
"type": "string",
"required": false,
"description": "Optional classes to add to the form group (e.g. to show error state for the whole group)"
}
]
},
{
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the anchor tag."
},
{
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the anchor tag."
}
]