This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Define type of properties | |
interface Props { | |
usersAmount: number; | |
} | |
interface States { | |
json: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Define type of property | |
interface Props { | |
json: any; | |
} | |
interface States { | |
json: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { PropertyControls, ControlType, Stack } from "framer"; | |
import { List_Item } from "./canvas"; | |
// Define type of property | |
interface Props { | |
rows: number; | |
} | |
export class RandomMockDataList extends React.Component<Props> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { Stack, PropertyControls, ControlType, Override } from "framer"; | |
import { cardsData } from "./data/cards-data"; | |
// Define type of property | |
interface Props { | |
width: number; | |
height: number; | |
itemsAmount: number; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
import styled from "styled-components"; | |
// Styled components | |
const InputWrappeer = styled.div` | |
display: flex; | |
flex-direction: column; | |
`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Data, animate, Override, Animatable } from "framer"; | |
const data = Data({ opacity: Animatable(0.3), currentPage: 0 }); | |
let inputsValidity = Data({ | |
login: false, | |
pass: false | |
}); | |
const btnAnimationTime = 0.2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Define type of property | |
interface Props { | |
width: number; | |
listHeaderTitle: string; | |
} | |
export class RadioGroup extends React.Component<Props> { | |
// Set default properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getFigmaObjTree(figmaApiKey, figmaId) { | |
let result = await fetch("https://api.figma.com/v1/files/" + figmaId, { | |
method: "GET", | |
headers: { | |
"X-Figma-Token": figmaApiKey | |
} | |
}); | |
let figmaTreeStructure = await result.json(); | |
console.log(figmaTreeStructure); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getStylesArtboard(figmaApiKey, figmaId) { | |
const result = await fetch("https://api.figma.com/v1/files/" + figmaId, { | |
method: "GET", | |
headers: { | |
"X-Figma-Token": figmaApiKey | |
} | |
}); | |
const figmaTreeStructure = await result.json(); | |
const stylesArtboard = figmaTreeStructure.document.children.filter(item => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"token": { | |
"font": { | |
"h1": { | |
"desktop": { | |
"family": { | |
"value": "Zilla Slab" | |
}, | |
"weight": { | |
"value": "bold" |