properties
changelog

Position Method OR Type

Set element's position method or type related to parent.

Usage:

  • @position is-*;

Reference

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

  properties: {
    position: {
      is: {
        property: "position: <v><i>;",
        values: {
          static: "static",
          fixed: "fixed",
          absolute: "absolute",
          relative: "relative",
          sticky: "sticky",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: