Parámetros Nunjucks del componente: "Button". Versión: 12.0.1
Los parámetros de Nunjucks para este componente están dentro de la siguiente etiqueta code en formato yaml.
{"val":"params:\n- name: element\n type: string\n required: false\n description: Whether to use an `input`, `button` or `a` element to create the button. In most cases you will not need to set this as it will be configured automatically if you use `href` or `html`.\n- name: text\n type: string\n required: true\n description: If `html` is set, this is not required. Text for the button or link. If `html` is provided, the `text` argument will be ignored and `element` will be automatically set to `button` unless `href` is also set, or it has already been defined. This argument has no effect if `element` is set to `input`.\n- name: html\n type: string\n required: true\n description: If `text` is set, this is not required. HTML for the button or link. If `html` is provided, the `text` argument will be ignored and `element` will be automatically set to `button` unless `href` is also set, or it has already been defined. This argument has no effect if `element` is set to `input`.\n- name: name\n type: string\n required: false\n description: Name for the `input` or `button`. This has no effect on `a` elements.\n- name: type\n type: string\n required: false\n description: Type of `input` or `button` – `button`, `submit` or `reset`. Defaults to `button`. This has no effect on `a` elements.\n- name: value\n type: string\n required: false\n description: Value for the `button` tag. This has no effect on `a` or `input` elements.\n- name: disabled\n type: boolean\n required: false\n description: Whether the button should be disabled. For button and input elements, `disabled` and `aria-disabled` attributes will be set automatically.\n- name: href\n type: string\n required: false\n description: The URL that the button should link to. If this is set, `element` will be automatically set to `a` if it has not already been defined.\n- name: target\n type: string\n required: false\n description: The target where the button should link to.\n- name: classes\n type: string\n required: false\n description: Classes to add to the button component.\n- name: attributes\n type: object\n required: false\n description: HTML attributes (for example data attributes) to add to the button component.\n- name: preventDoubleClick\n type: boolean\n required: false\n description: Prevent accidental double clicks on submit buttons from submitting forms multiple times","length":2343}