properties
changelog

Top Offset

Set positioned element's top side distance or offset from the parent.

Usage:

  • @position top-*;

Reference

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

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

export default shilpConfig;

Published at:

Last updated at: