Skip to content

DateRenderer #7

@niekvenlo

Description

@niekvenlo

I'd really love it if I could control what is rendered on each day a little more. Right now this works really well for a date-picker type application, but for something like Google Calendar you'd need to be able to render whether a day has events.

I propose something like this, where I'm using a new component called DayRenderer instead of DayLabel:

<Cal.Days>
    <Cal.Day>
        <Cal.DayInRange />
        <Cal.DayRenderer
            render={({ dayjsDate }) => (
                <DaysEvents date={dayjsDate} />
            )}
        />
    </Cal.Day>
</Cal.Days>

This would make it possible to render calendars like this:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions