dsfr4drupal-1.x-dev/components/notice/notice.component.yml
components/notice/notice.component.yml
name: DSFR - Notice
description: The important information banner allows users to see or access important and temporary information.
status: stable
group: DSFR
variants:
alert:
title: Alert
description: Component alert style
attack:
title: Attack
description: Component attack style
cyberattack:
title: Cyberattack
description: Component cyberattack style
info:
title: Info
description: Component info style (default)
warning:
title: Warning
description: Component warning style
weather-orange:
title: Weather orange
description: Component weather orange style
weather-purple:
title: Weather purple
description: Component weather purple style
weather-red:
title: Weather red
description: Component weather red style
witness:
title: Witness
description: Component witness style
props:
properties:
attributes:
type: Drupal\Core\Template\Attribute
title: Attributes
button_label:
type: string
title: Button label
description: 'By default: "Hide message", or the translated string in another language.'
button_title:
type: string
title: Button title attribute
description: 'By default: "Hide message", or the translated string in another language.'
content:
type: string
title: Content
has_button:
type: boolean
title: Has button?
default: false
icon:
type: string
title: Icon
description: Allows you to define the weather icon of the notice.
enum:
- avalanches
- flood
- heavy-showers
- snowy
- sun
- temp-cold
- thunderstorms
- windy
link:
type: string
title: Link
description: A Drupal Link object.
title:
type: string
title: Title
required:
- title
libraryOverrides:
dependencies:
- dsfr4drupal/component.notice
