blob: 4239e8974df5357cc610a0cda0955e7c3c83fc07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import styled from "styled-components";
import React from "react";
import FloatingLabel from "../decorators/FloatingLabel";
export const Wrapper = styled.div`
display: block;
margin-left: 2em;
`
export const Labelled = ({label, value, children}) => <Wrapper>
<FloatingLabel label={label} value={value} >
<span>{label}</span>
{children}
</FloatingLabel>
</Wrapper>
|