Skip to content

Why "VueButton" is considered a bad component name and "VButton" is not? #2510

Closed Answered by brc-dd
lanaschuster asked this question in Q&A
Discussion options

You must be logged in to vote

Technically single letter prefix can be considered arbitrary too. But mostly people use them to avoid naming conflicts or to better organize stuff. This is especially common with component libraries. Like vuetify uses v as prefix, element plus uses el, ant design uses a, and so on. And in projects too (suppose it's named Foo), and you won't wanna have just Button, so you will need to make every component have at least two words, and people often go with FButton (F is the first character of Foo; people don't usually go with FooButton as that's just longer to type).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lanaschuster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants