diff --git a/src/components/FormRow.js b/src/components/FormRow.js index 24f395bcd..2c31e1102 100644 --- a/src/components/FormRow.js +++ b/src/components/FormRow.js @@ -1,5 +1,5 @@ import React from 'react'; -import { FormGroup, Input, Label, Col, FormFeedback, FormText } from 'reactstrap'; +import { FormGroup, Input, Label, Col, Row, FormFeedback, FormText } from 'reactstrap'; import CheckboxInput from './CheckboxInput'; import RadioInput from './RadioInput'; @@ -38,6 +38,8 @@ const FormRow = props => { type, children, inline, + stacked, + width, ...attributes } = props; @@ -46,22 +48,31 @@ const FormRow = props => { const [baseFeedback, childFeedback] = parseFeedback(feedback); const rowColor = color || state || (baseFeedback && 'danger'); + const labelWidth = stacked ? 12 : 3; + const labelAlignment = stacked ? '' : 'text-sm-right'; + + const inputContainerWidth = stacked ? 12 : 9; + return ( -