Replies: 11 comments 2 replies
-
|
Adding some context 👇 Angular is going through some important updates that might influence how we name things. Because of that, we’re thinking ahead about how ZardUI can stay aligned with Angular’s evolution while keeping the library consistent, easy to use, and predictable for developers. That’s the main reason we opened this discussion — to get community feedback before we lock in a naming convention that might stay for a long time. 🚀 |
Beta Was this translation helpful? Give feedback.
-
|
Option B (ZardButton) is the sweet spot. It's what the ecosystem has converged on, future-proofs for cleaner templates, and maintains the namespace clarity that makes component libraries manageable in large applications. |
Beta Was this translation helpful? Give feedback.
-
|
For me, the option B is the perfect balance. |
Beta Was this translation helpful? Give feedback.
-
|
Seems like right now I'm in the majority, but yeah B..especially considering selectorless & future jsx-like syntax :) |
Beta Was this translation helpful? Give feedback.
-
|
Will we retain the suffix in service and directive names? |
Beta Was this translation helpful? Give feedback.
-
|
Option B seems to be the perfect solution! Following New angular best practices |
Beta Was this translation helpful? Give feedback.
-
|
I'd vote for D.
Actually once we add a Zard component to our codebase, it's not Zard anymore, we can tweak it and own it and that's the beauty of Zard (and Shadcn). If a user adds a Button let's just call it Button, if they need to name it something else (potentially to avoid conflicting with existing Button component) they can always export it as something else or even rename it |
Beta Was this translation helpful? Give feedback.
-
|
I have been using this, and I would actually vote for It was however handy to have the prefix while evaluating the components alongside other libraries, but in a live project I would be using the components primarily and so would just remove the prefix anyway. I love this project exists btw, I want Angular as a framework but I want shadcn components. |
Beta Was this translation helpful? Give feedback.
-
|
IMHO optition B it will be a good option for the naming conventions |
Beta Was this translation helpful? Give feedback.
-
|
I’d go with D. Button, with B. ZardButton as a fallback. With Angular moving toward selectorless components, naming becomes even more important since components may be used directly after import. Short, intention-based names like Button feel more natural and reduce boilerplate, especially when a project typically relies on a single UI library. This approach keeps templates clean, improves ergonomics, and aligns well with Angular's future direction. If collisions become an issue in mixed setups, ZardButton still works as a safe alternative but Button feels like the most future-proof default. |
Beta Was this translation helpful? Give feedback.
-
|
My 2 cents For Components: For services: For Directives "ZCopyToClipboard" (Component) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone 👋
We’re reviewing how components are named in ZardUI and would love your feedback before moving forward with any changes.
Currently, our components are named like this:
We’re considering simplifying this naming style to make components cleaner and more intuitive to use.
💡 Why this matters
This is about finding the right balance between clarity, readability, and developer experience.
Some developers prefer keeping explicit prefixes (like
Zard) for discoverability, while others favor shorter names that look cleaner in templates and imports.🧱 Naming options being considered
ZardButtonComponentZardButtonButtonComponentButton⚙️ Points to consider
ComponentandDirective— should we follow that?Please vote in the poll and share your reasoning in the comments below.
Your feedback will help us define a consistent and developer-friendly naming convention for ZardUI going forward 💬
30 votes ·
Beta Was this translation helpful? Give feedback.
All reactions