@upstart.gg/sdk
Version:
You can test the CLI without recompiling by running:
18 lines (15 loc) • 603 B
text/typescript
import { type SchemaOptions, type Static, type StringOptions, Type } from "@sinclair/typebox";
import { StringEnum } from "~/shared/utils/string-enum";
export function direction(options: StringOptions = {}) {
return StringEnum(["flex-row", "flex-col"], {
title: "Direction",
description: "The direction of the layout",
enumNames: ["Horizontal", "Vertical"],
default: "flex-row",
// $id: "styles:direction",
"ui:styleId": "styles:direction",
examples: ["flex-row", "flex-col"],
...options,
});
}
export type DirectionSettings = Static<ReturnType<typeof direction>>;