~/talk

Reusable components: maintain clean code efficiently

Talkat vueday 2022 · on Friday, 2022-11-18· [vue]
slides:none on file

Claims concrete wins at GitLab: a design system called pajamas design system plus Vue components tame a giant repo of over 3,000 View files and about 1,500 buttons, leaving only 64 plain HTML buttons. The reusable button built supports props for variant/category/size, computed class binding, disabled and loading states, conditional icon-to-spinner swap, optional href output, and shared unit tests, so a single component fixes styling, accessibility and behavior project‑wide.

AI-written summary · about

  1. 0:00Introduction
  2. 1:43About GitLab codebase
  3. 3:08What is reusable component
  4. 5:34GitLab’s Pajamas
  5. 8:00Why reusable components matter
  6. 9:06How reusable components work
  7. 10:31Anatomy of reusable component
  8. 13:47Practical: building button
  9. 24:17Using button in code
  10. 27:32Refactoring to reusable components
  11. 28:59Summary
  12. 29:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.