N00nDay / stwui

Opinionated yet customizable Svelte-TailwindCSS component library
stwui.vercel.app
MIT License
451 stars 21 forks source link

Customizing DatePicker+Time button #171

Closed MrWildanMD closed 1 year ago

MrWildanMD commented 1 year ago

How can i customizing the datepicker with time buttons? its conflicting with my custom css variable, thanks

N00nDay commented 1 year ago

This is currently not possible. The DatePicker is a fairly complex component so my initial goal was to get this out so people can start utilizing it and provide feedback. Enough time has passed that I can take this to the next stage and allow for customization. It will most likely require some extra boilerplate on the developer's end but I will see what I can come up with.

MrWildanMD commented 1 year ago

Alright, i understand, because after i seeing the source..then i decide to change my custom css class naming convention different from its datepicker button..so it didnt conflict

N00nDay commented 1 year ago

Something else I will be adding in the near future is class names for components to make this type thing easier even if the component is a wrapper the developer wouldn't have direct access to otherwise.

MrWildanMD commented 1 year ago

okay i have other question...for the Button component on form submit can i prevent page from reloading? did event.preventDefault work?

N00nDay commented 1 year ago

Yes, you have to set the htmlType to button. I thought that was the default for button components but it appears that is not the case. I will add this to the docket.

N00nDay commented 1 year ago

@MrWildanMD I have added class identifiers to every component which should allow for deeper customization. I am still debating on pulling out the components to be passed in as slots for additional customization.

MrWildanMD commented 1 year ago

alright thank you, gotta check it later