You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue getting the selected value from the Datepicker component from the flowbite-react library. Using with NextJS.
The component displaying nicely.
I have tried the following code, but return nothing when the date is selected:
import{Datepicker}from"flowbite-react";exportdefaultfunctionExampleComp(){return(<DatepickeronChange={(e)=>console.log(e)}// not workingonSelect={(e)=>console.log(e)}// not workingonInput={(e)=>console.log(e)}// not workingonSelectedDateChanged={(e)=>console.log(e)}// Error: Does not exist on type 'IntrinsicAttributes & DatepickerProps'/>)}
Nothing specific use case in the official documentation page but in storybook there is prop onSelectedDateChanged. I'm using it but Error: Does not exist on type 'IntrinsicAttributes & DatepickerProps
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am having an issue getting the selected value from the
Datepicker
component from theflowbite-react
library. Using with NextJS.The component displaying nicely.
I have tried the following code, but return nothing when the date is selected:
Nothing specific use case in the official documentation page but in
storybook
there is proponSelectedDateChanged
. I'm using it butError: Does not exist on type 'IntrinsicAttributes & DatepickerProps
Kindly help.
version
See on Stackoverflow?
Beta Was this translation helpful? Give feedback.
All reactions