Created
May 21, 2019 18:30
-
-
Save ruucm-working/e82296fb2e7a530f46eec2a667879a23 to your computer and use it in GitHub Desktop.
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
| --- a/material-button-types.framerfx/code/MaterialButton.tsx | |
| +++ b/material-button-types.framerfx/code/MaterialButton.tsx | |
| @@ -1,5 +1,6 @@ | |
| import * as React from 'react' | |
| import { Frame, useCycle, addPropertyControls, ControlType } from 'framer' | |
| +import './fonts.css' | |
| // Open Preview (CMD + P) | |
| // API Reference: https://www.framer.com/api | |
| @@ -7,7 +8,23 @@ window.log = console.log | |
| export function MaterialButton(props) { | |
| log('props', props) | |
| - if (props.type == 'text') return <Frame>{props.text}</Frame> | |
| + if (props.type == 'text') | |
| + return ( | |
| + <Frame | |
| + background="" | |
| + width="100%" | |
| + height="100%" | |
| + style={{ | |
| + fontSize: 14, | |
| + color: '#6221EA', | |
| + fontFamily: 'Roboto', | |
| + fontWeight: 500, | |
| + letterSpacing: 1.1, | |
| + }} | |
| + > | |
| + {props.text} | |
| + </Frame> | |
| + ) | |
| else if (props.type == 'outlined') | |
| return <Frame background="red">{props.text}</Frame> | |
| else if (props.type == 'contained') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment