16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
import * as React from 'react';
|
|
import {colors} from 'material-ui/styles';
|
|
|
|
export interface RequiredLabelProps {
|
|
label: string|React.ReactNode;
|
|
}
|
|
|
|
export const RequiredLabel = (props: RequiredLabelProps) => {
|
|
return (
|
|
<span>
|
|
{props.label}
|
|
<span style={{color: colors.red600}}>*</span>
|
|
</span>
|
|
);
|
|
};
|