Comments (7)
Thank you for feedback.
You can try the primaryColor
prop to change the theme of the calendar as stated in docs Theming options
<Datepicker
primaryColor="green"
/>
We'll try to add more theme customization features very soon.
PR's are always welcome.
from react-tailwindcss-datepicker.
@onesine hey! 👋
Indeed, incredible work so far. This was indeed missing from the community. I believe to handle all people's needs, you should probably allow overloading classes for different parts of the UI (such as the input, the container, the popup etc.).
Because of class priority (aka the order in which you type them), if someone wants to add custom classes to set specific styles (even colours, backgrounds etc) he/she should be able to just pass the overloaded classes. For example:
<DatePicker
overloadInputClasses='bg-[#5551ff] py-2'
/>
I believe it's relatively easy to implement that. I can probably try to contribute to this with a PR if I find some time.
Again, thanks a lot for this :)
from react-tailwindcss-datepicker.
Hi @nLamprok 👋
Thank you for your feedbacks. I don't have enough time right now to respond to everyone's needs. I will do my best, but it would be interesting to have other people participate with me in improving this package. There are enough features that could be added and as I receive many feature requests.
Thank you also for the example you have proposed. I will be very happy to see your PR very soon 😃.
from react-tailwindcss-datepicker.
New props available as of v1.2.0:
- to overload input classNames :
inputClassName
- to add classNames to input container:
containerClassName
- to disable the input:
disabled
<Datepicker
disabled
inputClassName="text-base font-normal"
containerClassName="mt-2"
/>
from react-tailwindcss-datepicker.
I've tried to customize the background color but it doesn't seem to work it out, this would be amazing if it was possible ! Congratz awesome project by the way
from react-tailwindcss-datepicker.
Hi 👋 @liamjbarry
Thank you very much for your feature request. I am very happy that you find it easy to use and that you find it so enjoyable.
Your request is very relevant as it was planned since the beginning of the project. Only I had some constraints and finally proposed some basic themes.
Very soon this feature will be supported in the next versions.
There are requests on the packages I released for the moment. So I'm a bit overwhelmed at the moment. I will be glad to see your PR and contribute with you on this package.
from react-tailwindcss-datepicker.
I will update the documentation very soon. Thanks @JefteCaro
from react-tailwindcss-datepicker.
Related Issues (20)
- Editing value manually doesn't update widget if done at the start
- Missing comma in demo code
- Calendar not showing previous month when using different dayjs.locale()
- id attribute not passed on to underlying input
- custom classnames
- Feature Request: Can you add a time range, e.q. 08:00 - 14:00
- Masks
- Read-only mode not working
- State of the project HOT 1
- Modal is not adjusting according to height HOT 2
- Pop up is displayed below another component despite a higher z Index container
- Weird date selection behaviour in react tailwindcss datepicker
- Add shortcutClassName property HOT 1
- Hide/show year feature
- Selected date background is not showing. HOT 1
- fix for inside of accordion
- DatePicker won't reset on reset button press within an html form
- Support typical input field aspects such as tabIndex
- Add support for date localization
- Installation Instructions typo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tailwindcss-datepicker.