properties
changelog

Grow Flex Item

Set flex grow factor for expanding items.

Usage:

  • @flex grow;
  • @flex grow-0;
  • @flex grow-*;

Reference

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

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

export default shilpConfig;

Published at:

Last updated at: