properties
changelog

Box Sizing

Control box-sizing model for elements.

Usage:

  • @layout box-*;
  • @layout box-border;
  • @layout box-content;

Reference

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

  properties: {
    layout: {
      box: {
        property: "box-sizing: <v><i>;",
        values: {
          border: "border-box",
          content: "content-box",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: