Unverified Commit 42bd5afc authored by Tor Raswill's avatar Tor Raswill Committed by GitHub
Browse files

fix(types): types for FormLabel (#5063)



* #5056 fix types for FormLabel

Fixes #5056 and adds 'sm' and 'lg' as types for FormLabel column

* Update simple.test.tsx

Updated with test for types on Form.Label column
Co-authored-by: default avatarTor Raswill <tor.raswill@dqc.se>
parent fbbb886e
......@@ -15,7 +15,7 @@ export interface FormLabelOwnProps extends FormLabelBaseProps {
}
export interface FormLabelWithColProps extends FormLabelBaseProps, ColProps {
column: true;
column: true | 'sm' | 'lg';
}
export type FormLabelProps = FormLabelWithColProps | FormLabelOwnProps;
......
......@@ -224,6 +224,14 @@ import {
<Form.Control type="text" placeholder="Hoizontal" />
</Col>
</Form.Group>
<Form.Group as={Row} controlId="exampleForm.HorizontalControl">
<Form.Label column="sm" sm={2}>
Horizontal
</Form.Label>
<Col sm={10}>
<Form.Control type="text" placeholder="Hoizontal" />
</Col>
</Form.Group>
<Form.File id="custom-file" label="Custom file input" custom />
<Form.File
ref={React.createRef<HTMLInputElement & FormFile>()}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment