@jossmac/lil-libs
    Preparing search index...

    Variable UNICODE_CHARSConst

    UNICODE_CHARS: {
        narrowNoBreakSpace: " ";
        noBreakSpace: " ";
        wordJoiner: "⁠";
        zeroWidthSpace: "​";
    } = ...

    Common Unicode characters for composing UI text with explicit control over spacing and line-break behavior.

    Type Declaration

    • ReadonlynarrowNoBreakSpace: " "

      A narrow form of a no-break space, typically the width of a thin or mid space. Use when two tokens should stay together with tighter spacing than a normal space (for example number-unit pairs or compact punctuation spacing).

    • ReadonlynoBreakSpace: " "

      A space character that prevents an automatic line break at its position. Use when two adjacent words or symbols must remain on the same line while keeping normal space width.

    • ReadonlywordJoiner: "⁠"

      An invisible, zero-width character that prevents line breaks between adjacent characters without adding visible spacing.

    • ReadonlyzeroWidthSpace: "​"

      A zero-width character that marks an optional line-break opportunity without adding visible spacing. Use to allow wrapping in long unbroken strings.

    `${10}${UNICODE_CHARS.narrowNoBreakSpace}kg`; // tight number–unit spacing, no line break
    `Page${UNICODE_CHARS.noBreakSpace}1`; // "Page 1" stays on one line
    `USD${UNICODE_CHARS.wordJoiner}/${UNICODE_CHARS.wordJoiner}EUR`; // keeps "USD/EUR" together
    `super${UNICODE_CHARS.zeroWidthSpace}long`; // optional wrap point, no visible space