carbon-components-react: add hideLabel attribute in DatePickerInputProps (#43242)

This commit is contained in:
Mathias Schilling 2020-03-31 18:40:15 +02:00 committed by GitHub
parent 9e35061d6a
commit 04fd2bbb0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import {
DataTableCustomRenderProps,
DataTableHeader,
DataTableRow,
DatePickerInput,
Dropdown,
FileUploader,
NumberInput,
@ -274,6 +275,15 @@ const uisLinkT5 = (
<Link<TestCompPropsOverwrite> element={TestComp3} someProp="asdf">Testing Overwrite</Link>
);
// DatePickerInput
const datePickerInputWithHideLabel = (
<DatePickerInput
hideLabel={true}
id="my-date-picker-input"
labelText="my-label-text"
/>
);
// Dropdown
const dropdownItemCanBeElement = (
<Dropdown

View File

@ -2,6 +2,7 @@
// Project: https://github.com/carbon-design-system/carbon/tree/master/packages/react
// Definitions by: Kyle Albert <https://github.com/kalbert312>
// Sebastien Gregoire <https://github.com/sgregoire>
// Mathias Schilling <https://github.com/matchilling>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5

View File

@ -9,6 +9,7 @@ interface InheritedProps extends
{ }
export interface DatePickerInputProps extends InheritedProps {
hideLabel?: boolean,
labelText: NonNullable<React.ReactNode>,
openCalendar?: React.MouseEventHandler,
pattern?: string,