Sha256: 7a5df481db9700cf8af27039dc5f4a80685b215a7c66cb4435d528931fa0688c

Contents?: true

Size: 1.48 KB

Versions: 46

Compression:

Stored size: 1.48 KB

Contents

[
    {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "If `html` is set, this is not required. Text to use within the inset text component. If `html` is provided, the `text` option will be ignored."
    },
    {
        "name": "html",
        "type": "string",
        "required": true,
        "description": "If `text` is set, this is not required. HTML to use within the inset text component. If `html` is provided, the `text` option will be ignored."
    },
    {
        "name": "caller",
        "type": "nunjucks-block",
        "required": false,
        "description": "Not strictly a parameter but [Nunjucks code convention](https://mozilla.github.io/nunjucks/templating.html#call). Using a `call` block enables you to call a macro with all the text inside the tag. This is helpful if you want to pass a lot of content into a macro. To use it, you will need to wrap the entire inset text component in a `call` block."
    },
    {
        "name": "id",
        "type": "string",
        "required": false,
        "description": "ID attribute to add to the inset text container."
    },
    {
        "name": "classes",
        "type": "string",
        "required": false,
        "description": "Classes to add to the inset text container."
    },
    {
        "name": "attributes",
        "type": "object",
        "required": false,
        "description": "HTML attributes (for example data attributes) to add to the inset text container."
    }
]

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
govuk_publishing_components-41.1.0 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json
govuk_publishing_components-41.0.0 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json
govuk_publishing_components-40.1.0 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json
govuk_publishing_components-40.0.0 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json
defra_ruby_template-5.4.1 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json
defra_ruby_template-5.4.0 node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json