@metreeca/tile
    Preparing search index...
    • Creates a note.

      Shows a glyph and a headline, with whatever detail is given beneath them, centred in the space the note is handed, so a screen fills an area it has nothing else to put in without laying one out for the purpose.

      A note given a headline sets the mark beside it on one line; one given none sets the mark above the body.

      Where the reader is asked something, onAccept turns the head into a native control, so the activation by Enter and Space, the tab stop and the focus ring come with it rather than having to be asked for. The head then stands on its wording alone, the box around it saying that it answers to a click where a glyph would say it twice.

      A note telling of a failure is read out as soon as it reaches the page, so a reader who does not see it learns of the failure where they expected the answer; an aside waits to be come upon in reading order.

      Parameters

      • options: {
            level?: "normal" | "info" | "highlight" | "warning" | "critical";
            icon?: ComponentChildren;
            text?: string;
            onAccept?: () => void;
            children?: ComponentChildren;
        } & ({ onAccept?: undefined } | { text: string })

        The widget configuration

        • Optionallevel?: "normal" | "info" | "highlight" | "warning" | "critical"

          How much attention the passage deserves, told in the weight of the headline and the colour of the mark on the four-step scale every meaning in the interface lands on: info states something no verdict has been passed on (info), highlight singles out a passage worth having (pass), warning carries a caveat the reader is to weigh (warn), critical tells of a failure (fail), and normal, the default, says nothing in particular and takes no colour at all. A level is never told in colour alone, so a note carrying one says the same thing in its mark and its wording.

          A note telling of a failure is read out as soon as it reaches the page rather than waiting to be come upon.

        • Optionalicon?: ComponentChildren

          The glyph marking the notice, kept out of the accessibility tree unless it carries a label of its own, so that the note is read by its headline; the mark matching the kind of notice if omitted, that is an alert where the passage carries a caution or tells of a failure and an information mark otherwise. A note the reader answers shows no mark at all, so what is given here plays no part alongside onAccept.

        • Optionaltext?: string

          The headline the notice is read by, required where onAccept makes the head a control, which carries no mark to name it by. It is kept on the one line the head occupies, so wording asking for more room belongs in the body.

        • OptionalonAccept?: () => void

          What the reader's answer is handed to: supplying it turns the head into a control, boxed so that it reads as one before it is reached; a notice the reader only takes in if omitted.

          A screen taking the note away on the answer owes the reader somewhere to land, the control they were on going with it: only whoever removes the note knows what stands in its place, so the focus is theirs to hand on.

        • Optionalchildren?: ComponentChildren

          The detail shown beneath the head, in the column the note centres; plain markup, styled as the same markup is anywhere else on the page, with the element stating how the column is to take it: a div as a block of wording, centred and broken where the wording breaks it; a p as one paragraph of a stack; a section as a body scrolling within the note rather than stretching it; a code block as machine-readable detail set apart from the text above. An element left empty is dropped, so a detail rendered on a condition leaves no gap.

        • { onAccept?: undefined }
        • { text: string }

      Returns VNode<
          {
              role: string
              | undefined;
              level: "normal" | "info" | "highlight" | "warning" | "critical";
          },
      >

      The note