/**
* Banner component
*
* @attr type - Determines the style, can be "info", "warning", or "error". Default is "info"
* @attr corner - Determines if banner sets position at upper right corner or not.
*
* @slot header - Primary message of the banner.
* @slot content - Secondary message of the banner. Used to provide a description.
*/
export class Banner extends SpectrumElement {
@property({ reflect: true, type: String })
public type: 'info' | 'warning' | 'error' = 'info';
@property({ reflect: true, type: Boolean })
public corner = false;
}
"attributes": [
{
"name": "type",
"type": {
"type": ""
},
"description": "Determines the style, can be \"info\", \"warning\", or \"error\". Default is \"info\""
},
{
"name": "corner",
"type": {
"type": ""
},
"description": "Determines if banner sets position at upper right corner or not."
},
{
"name": "type",
"fieldName": "type"
},
{
"name": "corner",
"fieldName": "corner"
}
],