Create a Custom Component Library with Vue & Tailwind CSS

  Рет қаралды 27,101

Vue Mastery

Vue Mastery

Күн бұрын

Пікірлер: 25
@rm-rf
@rm-rf 2 жыл бұрын
If you do not use Tailwind in the project that consumes the component library, you probably want to disable preflight (style resetting). Otherwise it may break your main applications layout. Also, to avoid clashing class names when you do use Tailwind in your main application, use some prefix for tailwind in the component library (like tw-).
@sahib.alejandro
@sahib.alejandro Жыл бұрын
This is very helpful, thanks
@peze_yt
@peze_yt Жыл бұрын
Hello, how I can add prefix to tailwind?
@bozzistef
@bozzistef Жыл бұрын
Thanks for the tip!
@nikolaystoychev7170
@nikolaystoychev7170 Жыл бұрын
In case you don't want to use the css from package, instead discover the files from node_modules/florida-components and compile them into your project. Example ⬇ module.exports = { content: [ 'node_modules/florida-components/dist/*.js' ], OR module.exports = { content: [ 'node_modules/florida-components/components/**/*.vue' ],
@s1kebeats
@s1kebeats Жыл бұрын
thank you very much!!
@jo0o0oke3e3er
@jo0o0oke3e3er Жыл бұрын
8:20 you re importing again the component which is already imported by the other index.js file. it would be more clean to simply do: export * from ./Button
@amirhoseinarmantaheri7029
@amirhoseinarmantaheri7029 10 ай бұрын
i have a small question: if i wanna use my web component which is created by vue 3 in a third party website (website may uses any version of vue or not at all) and the question: is it possible to face vue version conflict between my web component vue version and the third party website vue version ?
@YouGetIt
@YouGetIt Жыл бұрын
What are the differences in the configuration if one is using the Vite, without vue-cli?
@alexandreevich2278
@alexandreevich2278 2 жыл бұрын
Where is TS support? :(
@markatienza5101
@markatienza5101 Жыл бұрын
Created one on my github btw: a-3140/vue3-tailwindcss-ts-ui-component
@abhishekpaliwal346
@abhishekpaliwal346 Жыл бұрын
How we can import as a component currently based on the video we are importing at the root level you can say in app mount I want to import the component in wherein I need to use (route or components based wherein we need to use not on the root level)
@ZlatkoIliev-s4j
@ZlatkoIliev-s4j Жыл бұрын
What if I want to also export icons from my library?!? How can I do that?
@CuevasGPablo16
@CuevasGPablo16 2 жыл бұрын
why is using the old create vue app? can we use the new way of scaffolding vue projects?
@jo0o0oke3e3er
@jo0o0oke3e3er Жыл бұрын
why register them globally? would not make sense to import only whatever is needed? as soon as the library grow, the probability to don't use of all them is quite high
@maxk6655
@maxk6655 4 ай бұрын
But it's build one big css file that not ideal for production
2 жыл бұрын
Great presentation, however the name of the video should be "Create Custom Vue Component Library with Tailwind"
@andrewboddy2791
@andrewboddy2791 2 жыл бұрын
1. WHY would I do this rather than use Vuetify? I am at this decision point. (I have used Vuetify before) 2. I dislike the Vuetify layout classes, although I am not a CSS master (or competent) I prefer to use raw CSS so I learn the basics of grid and flexbox. Is this a good approach? 3. Another example/preference (am I wrong?)... Rather than use v-divider from Vuetify is it not more simple to use (using base technology makes it more accessible )
@brokula1312
@brokula1312 2 жыл бұрын
Why? Because someone gave you styleguide and brand guidelines to follow.
@OzoneGrif
@OzoneGrif 2 жыл бұрын
1. Building your own component library can give you better control over the design of your application. You also won't be dependent on library issues and limitations. Vuetify isn't that good anyway plus it is very opiniated... 2. It can be, but it requires more attention to details. Tailwind is a good middle-ground honestly. 3. Use what works for you... if works, then why not use it?
@hogwrangler3283
@hogwrangler3283 2 жыл бұрын
imo this talk is about how to wrap your own components (css & behavior) into a npm package for others to consume. you can use any ui library or write your own entirely custom css and behavior for your components & tailwind was just used for demo purposes.
@andrewboddy2791
@andrewboddy2791 2 жыл бұрын
@@hogwrangler3283 thanks, yes, there was a lot of 'NPM' in this which is not important to me. I thought of 'roll my own' but that is too ambitious for our small team. Lowest risk is to use Vuetify with our own layer of styled components; we can style differently from the toy-town look that comes out-of-the-box.
@albertomanzano1745
@albertomanzano1745 2 жыл бұрын
1) on large companies where they have several internal projects you may need to have a good design system with its own component library based on all needs across projects rather than having to install n+vuetify instances and copy pasting components. Both ways work, it depends on what you need; does it going to have a big scale? o just one small project.
@breezycodes
@breezycodes 2 жыл бұрын
🤣😂🤣😂 the code always want to show off when you are showing it to people.
@brokula1312
@brokula1312 2 жыл бұрын
These presentations are getting more and more useless. Please, now teach me how do you declare variables.
Improving Page speed Performance with Vue 3
25:43
Vue Mastery
Рет қаралды 7 М.
Unit Testing Vue Apps: Tips, Tricks, and Best Practices
29:51
Vue Mastery
Рет қаралды 13 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Common Mistakes in Vue.js and How to Avoid Them | VueConf US 2024
25:16
Publish a Vue Component to NPM // Vite and Vue 3
5:45
LearnVue
Рет қаралды 29 М.
Building Accessible Vue Components
41:03
Vue Mastery
Рет қаралды 6 М.
Mobile Development in Vue
17:52
Vue Mastery
Рет қаралды 12 М.
Vue.js Modular Architecture
11:48
Sanjar Mirakhmedov
Рет қаралды 50 М.
5 Elegant ways to use Pinia 🍍
17:01
Vue Mastery
Рет қаралды 15 М.
Vue Mastermind Evan You answers Vue devs' questions 🌟
15:50
Vue Mastery
Рет қаралды 6 М.