properties
changelog

Vertical Offset

Set positioned element's top and bottom (vertical) side distance or offset from the parent.

Usage:

  • @position y-*;

Reference

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

  properties: {
    position: {
      y: {
        property: `
          top: <n><v><i>;
          bottom: <n><v><i>;
        `,
        resolve: "spacing",
        themeKey: "spacing",
        values: {},
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: