Am I able to implement Popover on each date button for ShadcnUI Calendar component?

110 Views Asked by At

I'm currently using ShadcnUI's calendar component, and what I want to do is to be able to use ShadcnUI's popover component on each date. From my understanding, each date cell of the calendar's component is basically a <Button />, so I'm guessing it's something like:

<Button>{date}</Button>

But what I want to do is basically something like:

<Popover>
  <PopoverTrigger>
    <Button>{date}</Button>
  </PopoverTrigger>
  <PopoverContent>Events here!!!</PopoverContent>
</Popover>

Is this possible?

0

There are 0 best solutions below