React button components with styled-components
npm install yuai-buttonsReact button components with styled-components
yarn install yuai-buttons react styled-components
`Components
$3
`
// tree shaking
import Button from 'yuai-buttons/dist/Button';
// or
import { Button } from 'yuai-buttons';import * as React from 'react';
import styled from 'styled-components';
const SubmitButton = styled(Button)
&:hover {
background: ${({ theme }) => theme.activeColor};
};
const HelloWorld = () => (
`
javascript
// tree shaking
import Button from 'yuai-buttons/dist/Button';
import ButtonGroup from 'yuai-buttons/dist/Button';
// or
import { Button, ButtonGroup } from 'yuai-buttons';import * as React from 'react';
import styled from 'styled-components';
const SubmitButton = styled(Button)
&:hover {
background: ${({ theme }) => theme.activeColor};
};
const ResetButton = styled(SubmitButton);
const HelloWorld = () => (
);
``