Sha256: 735366471b04db9d22448c25f14caa4eb988cce409d1841f12d34aa5520eda86

Contents?: true

Size: 1.92 KB

Versions: 2

Compression:

Stored size: 1.92 KB

Contents

[
    {
        "name": "id",
        "type": "string",
        "required": true,
        "description": "The id of the input."
    },
    {
        "name": "name",
        "type": "string",
        "required": true,
        "description": "The name of the input, which is submitted with the form data."
    },
    {
        "name": "type",
        "type": "string",
        "required": false,
        "description": "Type of input control to render. Defaults to \"text\"."
    },
    {
        "name": "value",
        "type": "string",
        "required": false,
        "description": "Optional initial value of the input."
    },
    {
        "name": "label",
        "type": "object",
        "required": true,
        "description": "Options for the label component.",
        "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.",
        "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."
    }
]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
govuk_publishing_components-13.7.0 node_modules/govuk-frontend/components/input/macro-options.json
govuk_publishing_components-13.6.1 node_modules/govuk-frontend/components/input/macro-options.json