PropertyAttributeDescriptionTypeDefaultautoComplete auto-completeProvides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., auto-complete='bday' for a birthday).stringundefinedcompact compactA boolean value that, if present, renders the input field as a compact version.booleanfalsedescription descriptionSupplementary text providing more context or explanation for the input.string''disabled disabledA boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.booleanfalseform formSpecifies the id of the stringundefinedhideLabel 🛠hide-labelControls the visibility of the label.boolean BreakpointCustomizable<boolean>falselabel labelText content for a user-facing label.string''loading 🧪loadingexperimental Shows a loading indicator.booleanfalsemax maxSpecifies the latest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., max='2024-12-31').stringundefinedmessage messageDynamic feedback text for validation or status.string''min minSpecifies the earliest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., min='2023-01-01').stringundefinedname nameThe name of the input field, used when submitting the form data.stringundefinedreadOnly read-onlyA boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.booleanfalserequired requiredA boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.booleanfalsestate stateIndicates the validation or overall status of the input component.type InputDateState = 'none' 'error' 'success''none'step stepDefines the granularity of the date input. This value is given in days. The default is 1 (one day).number1theme themeControls the visual appearance of the component.type Theme = 'light' 'dark' 'auto''light'value valueThe default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').string''
Events
prev
next
EventDescriptionTypeblur Emitted when the number input has lost focus.type InputDateBlurEventDetail = Event CustomEvent<InputDateBlurEventDetail>change Emitted when the number input loses focus after its value was changed.type InputDateChangeEventDetail = Event CustomEvent<InputDateChangeEventDetail>input Emitted when the value has been changed as a direct result of a user action.type InputDateInputEventDetail = InputEvent CustomEvent<InputDateInputEventDetail>
Slots
prev
next
SlotDescriptionisRequiredaltPropallowedTagNames<slot name="label"> Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.<slot name="description"> Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.<slot name="message"> Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.<slot name="start"> Shows content at the start of the input (e.g. unit prefix).<slot name="end"> Shows content at the end of the input (e.g. toggle button, unit suffix).
CSS Variables
prev
next
CSS VariableDescriptiondefaultValue--ref-p-input-slotted-padding When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly.--ref-p-input-slotted-margin When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly.