@grafctory/blue - v0.17.0
    Preparing search index...

    Function text

    • Creates a shape for single-line plain text values.

      Admits space-normalised single-line content: at least one non-whitespace character, no line breaks or tabs, no leading or trailing whitespace, and single spaces between words. Reach for it for labels, names and other short unformatted values that must survive rendering in any layout; reach for markdown where the content carries formatting or spans multiple lines.

      States no datatype, so values are typed xsd:string. The shape may also serve as the content of a dictionary, which holds every localised entry to the same rules as a plain value.

      Parameters

      Returns StringShape<string, undefined>

      An immutable shape admitting single-line plain text

      TraceError Where the stated constraints contradict one another