properties
changelog

Horizontal Offset

Set positioned element's right and left (horizontal) side distance or offset from the parent.

Usage:

  • @position x-*;

Reference

shilp.config.js
const shilpConfig = {
	source: "react",

	properties: {
		position: {
			x: {
				property: `
          left: <n><v><i>;
          right: <n><v><i>;
        `,
				resolve: "spacing",
				themeKey: "spacing",
				values: {},
			},
		},
	},
};

export default shilpConfig;