Notice

default notice control

Schema

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "title": "Notice control",
  "description": "Control for displaying an info, success, warning, or error notice",
  "type": "object",
  "required": [
    "option",
    "label"
  ],
  "properties": {
    "control": {
      "const": "notice"
    },
    "label": {
      "type": "string",
      "description": "notice message"
    },
    "subtle": {
      "type": "boolean",
      "description": "makes notice subtle",
      "default": false
    },
    "category": {
      "description": "category of notice",
      "enum": [
        "info",
        "success",
        "warning",
        "error"
      ]
    },
  }
}

Examples

Default Notice

default notice control

{
  "control": "notice",
  "label": "I am the default notice."
}

Info Notice

info notice control

{
  "control": "notice",
  "label": "I am an info notice.",
  "category": "info"
}

Success Notice

success notice control

{
  "control": "notice",
  "label": "I am a success notice.",
  "category": "success"
}

Warning Notice

warning notice control

{
  "control": "notice",
  "label": "I am a warning notice.",
  "category": "warning"
}

Error Notice

error notice control

{
  "control": "notice",
  "label": "I am an error notice.",
  "category": "error"
}

Subtle Info Notice

subtle info notice control

{
  "control": "notice",
  "label": "I am a subtle info notice.",
  "category": "info",
  "subtle": true
}

Subtle Success Notice

subtle success notice control

{
  "control": "notice",
  "label": "I am a subtle success notice.",
  "category": "success",
  "subtle": true
}

Subtle Warning Notice

subtle warning notice control

{
  "control": "notice",
  "label": "I am a subtle warning notice.",
  "category": "warning",
  "subtle": true
}

Subtle Error Notice

subtle error notice control

{
  "control": "notice",
  "label": "I am a subtle error notice.",
  "category": "error",
  "subtle": true
}