Giter Site home page Giter Site logo

Comments (7)

JefteCaro avatar JefteCaro commented on May 24, 2024 2

@rxflame

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.

nLamprok avatar nLamprok commented on May 24, 2024 1

@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.

onesine avatar onesine commented on May 24, 2024 1

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.

JefteCaro avatar JefteCaro commented on May 24, 2024 1

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.

rxflame avatar rxflame commented on May 24, 2024 1

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.

onesine avatar onesine commented on May 24, 2024

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.

onesine avatar onesine commented on May 24, 2024

I will update the documentation very soon. Thanks @JefteCaro

from react-tailwindcss-datepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.