Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
hmhrex
6y ago
0 comments
Save
Share
That just seems like a lot of classes though. Is it possible to create a component that inherits those classes?
0 comments
1 comments · 1 top-level
top
newest
oldest
malydok
6y ago
You simply create your own component class and `@apply` tailwind classes to it.
See:
https://tailwindcss.com/docs/extracting-components
j
/
k
navigate · click thread line to collapse