Skip to content

[RFP] The Inputs Update #3094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
12 tasks
caiotarifa opened this issue Jan 14, 2025 · 3 comments
Open
12 tasks

[RFP] The Inputs Update #3094

caiotarifa opened this issue Jan 14, 2025 · 3 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@caiotarifa
Copy link

caiotarifa commented Jan 14, 2025

Description

Discovering Nuxt UI and Nuxt UI Pro has been one of the highlights of 2024 for me. These libraries have saved me countless hours while delivering polished, tested, and consistent components that elevate the aesthetic and functional quality of my projects. I admire the exceptional work being done by @benjamincanac and the team, particularly with the ambitious mission of rewriting the library to embrace both TailwindCSS v4 and Reka UI within Nuxt UI v3.

One of the standout features in v3 has been the integration of TanStack Tables into the UTable component, adding to tables many new features and possibilities. However, after some usage in real-world scenarios, I’ve noticed a gap: a wider variety of input components.

I know that v3 is still in alpha, but I’d like to propose a new initiative for a future release, which I’m calling "The Inputs Update". This RFP could focus on identifying and implementing input components that would further enhance the library’s usability and versatility.

Additionally, this aligns with a prior suggestion to categorize form-related components separately within the documentation (#3019).

New Components

Updates to Existing Components

  • UPinInput → UInputPin
    Rename the existing UPinInput component to align with the naming convention used across other input components.

  • UInput / UTextarea
    Add a native character counter via a counter property, configurable using the min and/or max attributes. Currently, there is an example for this functionality, but a native implementation would improve the developer experience.

Additional context

No response

@caiotarifa caiotarifa added enhancement New feature or request triage v3 #1289 labels Jan 14, 2025
@zAlweNy26
Copy link
Contributor

This is awesome, nice idea!
I have just a doubt: wouldn't it be cleaner to have UInputTime, UInputDate and UInputDateTime in just one component? Something like UInputDateTime (same name, yes) but with a prop to switch between time, date and datetime (the default).
I'm saying that because they are pretty much the same component to me.
What do you think about this?

@caiotarifa
Copy link
Author

This is awesome, nice idea! I have just a doubt: wouldn't it be cleaner to have UInputTime, UInputDate and UInputDateTime in just one component? Something like UInputDateTime (same name, yes) but with a prop to switch between time, date and datetime (the default). I'm saying that because they are pretty much the same component to me. What do you think about this?

@zAlweNy26 That’s definitely an option worth considering, and I see where you’re coming from. However, I personally believe it’s more organized and keeps responsibilities better divided—with less logical overhead—if we have separate components. This also allows the individual "pickers" to stay modular and focused.

A good example of this approach is the @mantine/dates library, which has been an inspiration for me. What are your thoughts on this perspective?

https://mantine.dev/dates/getting-started/

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants