WickyNilliams / cally

Small, feature-rich calendar components
https://wicky.nillia.ms/cally/
MIT License
1.06k stars 12 forks source link

How would you use it in React Js? And Styles #19

Closed MarianoFfonseca closed 2 months ago

MarianoFfonseca commented 2 months ago

My questions

In your docs you are using npm install cally and then saying you are importing it as import "Cally" put this its not working for me, do i import it as a object and how do i use it. How to i use the onChange on it? And does it comes with styles?

Why

Im really liking it but if i want to use it in production i have to know that thinks, thank you Mariano!

WickyNilliams commented 2 months ago

Hey, did you see the guide here? https://wicky.nillia.ms/cally/guides/frameworks/#react

I will eventually add to the repo some examples that can be loaded up in stackblitz etc, but I haven't gotten around to it yet

BTW, pretty sure you want your import lowercased. If the docs show otherwise, let me know where and i'll fix:

import "cally"

You do not need to import any objects, because they are web components. This is a side effect import, which registers the components with the browser. They're ready to use as a side-effect

WickyNilliams commented 2 months ago

Closing this for now, but happy to continue discussion if the docs have errors or anything is missing