Skip to content

Instantly share code, notes, and snippets.

@onuro
Last active May 29, 2023 21:12
Show Gist options
  • Save onuro/2dec61528db3bb12395a66b5cef272df to your computer and use it in GitHub Desktop.
Save onuro/2dec61528db3bb12395a66b5cef272df to your computer and use it in GitHub Desktop.
Standard Framer Controls
import { addPropertyControls, ControlType, RenderTarget } from "framer"
export const flexDirection = {
type: ControlType.SegmentedEnum,
title: "Direction",
options: ["row", "column"],
optionTitles: [
"⇆",
"⇅",
// @ts-ignore
// <span
// // @ts-ignore
// dangerouslySetInnerHtml={{ __html: "&#x6F&#x332;" }}
// style={{ fontSize: "30px" }}
// />,
],
defaultValue: "row",
}
export const flexJustify = {
type: ControlType.Enum,
title: "Justify",
options: [
"start",
"center",
"space-between",
"space-around",
"space-evenly",
],
defaultValue: "center",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment