@corejam/core-components
Version:
Corejam - Core Components
18 lines (16 loc) • 338 B
text/typescript
/**
*
* @param value
* share inputs between component and transformers
*/
export default {
property: "justify-items",
transform: (value) => {
const valids = ["start", "center", "end", "stretch", "auto"];
if (valids.includes(value)) {
return value;
} else {
throw new Error("No valid Prop");
}
},
};