~/talk

Advanced Vue.js Component Design

Talkat Laracon Online Winter 2018 · on Wednesday, 2018-02-07· [vue, component-design]
slides:none on file

Shows how to turn a tag-input (press Enter to add, Backspace removes previous, de-duplicates, click X to delete) into a UI-less, behavior-first Vue component by using scoped slots to pass state and actions, bundling handlers as event handler groups (v-on object) and bindings (v-bind object), and using render functions to remove wrapper DOM. Demo uses Vue single-file components, slot-prop destructuring, and wrapper components to restore reusable UIs; the live demo runs, supports two different layouts/styles, and reproduces add/remove/keydown behavior.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:12Talk overview and demo app
  3. 7:49Customizing UI with style props
  4. 9:11CSS hooks and their limitations
  5. 13:24Scoped slots as solution
  6. 16:57Regular slots vs scoped slots
  7. 21:10Implementing scoped slots
  8. 24:47Slot prop categories
  9. 30:07Customizing input with slots
  10. 37:15Event handler groups
  11. 43:59Supporting alternate layouts
  12. 50:41Render functions for UI-less components
  13. 54:14Creating wrapper components
  14. 57:21Benefits of scoped slots
  15. 58:25Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.