aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/components/secondary_button.tsx
blob: 583058b5b3cec274cf6c8055510fb27023271920 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                             

                                                  
 
                                                            






                                                                                         
                               



                                                                                        
                                



                   


                                
import * as _ from 'lodash';
import * as React from 'react';

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

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

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}
            {...buttonProps}
        >
            <Text fontColor={ColorOption.primaryColor} fontWeight={600} fontSize="16px">
                {props.children}
            </Text>
        </Button>
    );
};
SecondaryButton.defaultProps = {
    width: '100%',
};