mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
carbon-components-react: add hideLabel attribute in DatePickerInputProps (#43242)
This commit is contained in:
parent
9e35061d6a
commit
04fd2bbb0a
@ -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
|
||||
|
||||
1
types/carbon-components-react/index.d.ts
vendored
1
types/carbon-components-react/index.d.ts
vendored
@ -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
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ interface InheritedProps extends
|
||||
{ }
|
||||
|
||||
export interface DatePickerInputProps extends InheritedProps {
|
||||
hideLabel?: boolean,
|
||||
labelText: NonNullable<React.ReactNode>,
|
||||
openCalendar?: React.MouseEventHandler,
|
||||
pattern?: string,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user