properties
changelog

White Space

Control white space in text.

Usage:

  • @text space-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    text: {
      space: {
        property: "white-space: <v><i>;",
        values: {
          normal: "normal",
          nowrap: "nowrap",
          pre: {
            DEFAULT: "pre",
            line: "pre-line",
            wrap: "pre-wrap",
          },
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: