properties
changelog

Shrink Flex Item

Control flex shrink factor for items.

Usage:

  • @flex shrink-*;

Reference

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

  properties: {
    flex: {
      shrink: {
        property: "flex-shrink: <v><i>;",
        values: {
          DEFAULT: 1,
          0: 0,
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: