16 lines
356 B
TypeScript
16 lines
356 B
TypeScript
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>
|
|
);
|
|
};
|