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

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

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