UNPKG

@corejam/core-components

Version:

Corejam - Core Components

9 lines (8 loc) 281 B
export default { property: "object-position", transform: (value) => { const valids = ["bottom", "center", "left", "right", "left-bottom", "left-top", "right-bottom", "right-top"]; if (valids.includes(value)) return value; throw new Error("Prop not valid"); }, };