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";
export default function ExampleComp(){
return (
<Datepicker
onChange={(e) => console.log(e)} // not working
onSelect={(e) => console.log(e)} // not working
onInput={(e) => console.log(e)} // not working
onSelectedDateChanged={(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
Kindly help.
version
- "flowbite": "^1.8.1",
- "flowbite-react": "^0.6.0",
- "tailwindcss": "3.3.3",
- "next": "13.4.19"