zepio/app/components/input-label.js

15 lines
351 B
JavaScript
Raw Normal View History

2018-12-19 13:40:24 -08:00
// @flow
2019-02-04 20:41:45 -08:00
2018-12-19 13:40:24 -08:00
import styled from 'styled-components';
import { TextComponent } from './text';
type Props = PropsWithTheme<{
marginTop: string,
}>;
2018-12-19 13:40:24 -08:00
export const InputLabelComponent = styled(TextComponent)`
margin: ${(props: Props) => props.marginTop || '20px'} 0 8.5px 0;
font-weight: ${(props: Props) => String(props.theme.fontWeight.bold)};
2018-12-19 13:40:24 -08:00
`;