Add a field row component

This commit is contained in:
Maciej Ziarkowski 2021-03-11 19:19:20 +00:00
parent 542fe6634b
commit 8a42f93dd2
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
.field-row {
display: flex;
flex-direction: row;
justify-content: space-evenly;
justify-items: left;
}
/* make all row elements the same width */
.field-row * {
flex: 1 1 0px;
}

View File

@ -0,0 +1,11 @@
import React from 'react'
import './field-row.css';
export function FieldRow({children}) {
return (
<div className="field-row">
{children}
</div>
)
}