creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
https://material-tailwind.com/
MIT License
3.51k stars 307 forks source link

Can't set min-width on input and select #515

Open apsquared opened 7 months ago

apsquared commented 7 months ago

I want to have my input and selects smaller than the 200 min width that is applied. I tried adding this to my theme in tailwind config but still no luck.

    input: {
      styles: {
        base: {
          container: {
            minWidth: "min-w-[100px]",
          }
        }
      }
    },
    select: {
      styles: {
        base: {
          container: {
            minWidth: "min-w-[100px]",
          }
        }
      }
    },
don-esteban commented 6 months ago

Can't help with theme modification, but if you just need it with a few inputs, use containerProps at component level. See: https://www.material-tailwind.com/docs/react/input#input-props