I need the following Datepicker UI design as show in LDS base variant. https://lightningdesignsystem.com/components/datepickers/#content


i have tried with following code, but i'm getting normal datepicker only.

<lightning:input type="datetime-local" label="Birthday" name="datetime" />

How to make it work using lightning:input ?

  • 1
    SLDS is not currently supported with lightning:input for date picker. – Himanshu Nov 28 '17 at 8:31

as @Himanshu commented - lightning:input does not support SLDS yet,

But ui:inputDate does:

<ui:inputDate displayDatePicker="true"/>

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.