aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/secondary_button.tsx
blob: df05396065c9c941be1218fafe58c58c0559cdcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import * as _ from 'lodash';
import * as React from 'react';

import { ColorOption } from '../style/theme';

import { Button, ButtonProps } from './ui/button';

export interface SecondaryButtonProps extends ButtonProps {}

export const SecondaryButton: React.StatelessComponent<SecondaryButtonProps> = props => {
    const buttonProps = _.omit(props, 'text');
    return (
        <Button
            backgroundColor={ColorOption.white}
            borderColor={ColorOption.lightGrey}
            width={props.width}
            onClick={props.onClick}
            fontColor={ColorOption.primaryColor}
            fontSize="16px"
            {...buttonProps}
        >
            {props.children}
        </Button>
    );
};
SecondaryButton.defaultProps = {
    width: '100%',
};