Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

simplify basic usage #65

Open
WickyNilliams opened this issue Sep 22, 2024 · 0 comments · Fixed by #70
Open

simplify basic usage #65

WickyNilliams opened this issue Sep 22, 2024 · 0 comments · Fixed by #70
Labels
enhancement New feature or request

Comments

@WickyNilliams
Copy link
Owner

WickyNilliams commented Sep 22, 2024

i'm thinking we can simplify basic usage, so that people don't need to render their own <calendar-months> with offsets etc.

this would simplify the basic case (and probably be good enough for most people's needs), whilst preserving the ability to have more advanced layouts where needed

as a result, it would mean these are equivalent:

<calendar-date months="2"></calendar-date>

<calendar-date months="2">
  <calendar-month></calendar-month>
  <calendar-month offset="1"></calendar-month>
</calendar-date>

to be sensisitive to perf, we should only render into the default slot if nothing is slotted

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant