Parámetros Nunjucks del componente: "Notification"
params:
- name: headingLevel
type: number
required: false
description: If headingLevel is 1, the parent heading tag needed inside this component will be a h1, if 2 will be a h2, and so on. If no headingLevel is present the title will be a p tag.
- name: title
type: object
required: true
description: This is the title. It's a h4 that can have text or html inside. Has tabindex=-1 and an id, that is the same as notification id with the -title suffix, to receive focus programatically.
- name: text
type: string
required: true
description: If `html` is set, this is not required. Text to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: html
type: string
required: true
description: If `text` is set, this is not required. HTML to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: classes
type: string
required: false
description: Classes to add to the notification title.
- name: description
type: object
required: false
description: This is the optional description under title
- name: text
type: string
required: true
description: If `html` is set, this is not required. Text to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: html
type: string
required: true
description: If `text` is set, this is not required. HTML to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: classes
type: string
required: false
description: Classes to add to the notification description.
- name: content
type: object
required: false
description: This is the optional content under the description and items
- name: text
type: string
required: true
description: If `html` is set, this is not required. Text to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: html
type: string
required: true
description: If `text` is set, this is not required. HTML to use within the title. If `html` is provided, the `text` argument will be ignored.
- name: classes
type: string
required: false
description: Classes to add to the notification content.
- name: items
type: array
required: false
description: This is a list of anchors. Can be used as errors links.
- name: href
type: string
required: false
description: Href attribute for the link item. If provided item will be an anchor.
- name: text
type: string
required: true
description: If `html` is set, this is not required. Text for the link item. If `html` is provided, the `text` argument will be ignored.
- name: html
type: string
required: true
description: If `text` is set, this is not required. HTML for the link item. If `html` is provided, the `text` argument will be ignored.
- name: attributes
type: object
required: false
description: HTML attributes (for example data attributes) to add to the link anchor.
- name: icon
type: object
required: false
description: This is the optional icon at left
- name: html
type: string
required: false
description: Use this html to insert a custom svg inline icon. If this is set, the type are not used.
- name: type
type: string
required: false
description: Predefined notification types are `success`, `alert`, `info`
- name: isDismissible
type: boolean
required: false
description: If true, the notification shows a close icon on top right to close it.
- name: id
type: string
required: true
description: Required id attribute to add to the div container tag and to generate the title id.
- name: classes
type: string
required: false
description: Classes to add to the div container tag.
- name: attributes
type: object
required: false
description: HTML attributes (for example data attributes) to add to the div container tag.