A component for triggering a user action. e.g: a submit button in a form
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "es5", | |
| "lib": ["es2015", "dom"], | |
| "outDir": "lib", | |
| "jsx": "react", | |
| "module": "commonjs", | |
| "declaration": true, | |
| "declarationMap": true, | |
| "sourceMap": true, |
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
| module.exports = { | |
| parserOptions: { | |
| ecmaVersion: 7, | |
| sourceType: 'module', | |
| ecmaFeatures: { | |
| jsx: true | |
| } | |
| }, | |
| parser: '@typescript-eslint/parser', | |
| extends: ['airbnb', 'prettier', 'prettier/react', 'prettier/standard'], |
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
| // VSCODE Extensions installed: Bracket Pair Colorizer, Docker, ESLint, Fix JSON, Git Blame, GraphQl, Material Icon Theme, npm intellisense | |
| { | |
| "workbench.iconTheme": "material-icon-theme", | |
| "editor.fontSize": 16, | |
| "editor.wordWrap": "on", | |
| "editor.tabSize": 2, | |
| "editor.autoClosingBrackets": "always", | |
| "editor.autoClosingQuotes": "always", | |
| "editor.detectIndentation": true, | |
| "editor.formatOnSave": true, |
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 useStyles from './button.style'; | |
| export type Props = { | |
| children: React.ReactNode; | |
| onClick?: () => void; | |
| color?: string; | |
| type?: string; | |
| disabled?: boolean; |
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 React from "react"; | |
| import { addReadme } from 'storybook-readme'; | |
| import { create } from '@storybook/theming'; | |
| import { addDecorator, addParameters, configure } from "@storybook/react"; | |
| import { ThemeProvider } from "react-jss"; | |
| import theme from "../src/style/globalStyle"; | |
| import '../src/style/base.css'; | |
| const basicTheme = create({ |
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
| :root { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | |
| Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| box-sizing: border-box; | |
| font-size: 18px; | |
| font-style: normal; | |
| font-weight: normal; | |
| text-align: left; | |
| line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; |
NewerOlder