feat(striker-ui): add atom Label

main
Tsu-ba-me 4 years ago
parent ab10805adf
commit b08332227a
  1. 11
      striker-ui/components/atoms/Label.tsx
  2. 3
      striker-ui/types/LabelProps.d.ts

@ -3,13 +3,14 @@ import styled from 'styled-components';
import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME'; import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME';
type LabelProps = { const StyledLabel = styled.h2`
text: string; padding: 0;
}; margin: 0;
const StyledLabel = styled.span`
font-size: 1em;
color: ${(props) => props.theme.colors.primary}; color: ${(props) => props.theme.colors.primary};
font-size: 1em;
font-weight: normal;
`; `;
StyledLabel.defaultProps = { StyledLabel.defaultProps = {

@ -0,0 +1,3 @@
type LabelProps = {
text: string;
};
Loading…
Cancel
Save