aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Inputs/shared.js
blob: 2f6ee3fade5aac9d6b4134ffb4fe95d527fb12ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import styled from "styled-components";
import React from "react";
import FloatingLabel from "../decorators/FloatingLabel";

export const Labelled = ({label, value, children}) => <div>
  <FloatingLabel label={label} value={value} >
    <span>{label}</span>
    {children}
  </FloatingLabel>
</div>