aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui/required_label.tsx
blob: 5080462fa9bbde92847af66c537a05116526746c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { colors } from '@0x/react-shared';
import * as React from 'react';

export interface RequiredLabelProps {
    label: string | React.ReactNode;
}

export const RequiredLabel = (props: RequiredLabelProps) => {
    return (
        <span>
            {props.label}
            <span style={{ color: colors.red600 }}>*</span>
        </span>
    );
};