How do I show only years on flowbite datepicker

I want the user to select only the year from flowbite-datepicker

But I don’t know how do that. I tried to add the datepicker-format attribute with the value yyyy like this:

<div id="date-range-picker" date-rangepicker datepicker-format="yyyy"
class="w-full flex items-center">

but it is still show me the full calender, when a date selected it takes the year only.