Speaker

Tim Huddle

Tim Huddle

Fellow Engineer @ Fuse by Cardinal Health

Actions

By day Tim pretends to know things about Javascript and Javascript accessories while building a shared component library at Fuse and by night they pretend to know how to play samurai in FFXIV. Highly sarcastic digital recluse, 8 years and running CodeMash attendee (judging by their historical hoody collection), fixer of `credo` on Windows, maintainer of an npm package w/ 9 whole downloads/week, and proud owner of a Steam Deck. Will absolutely talk your ear off about whatever it is they're currently working on.

Building a Shared Component Library in Lit

Multiple teams, using multiple JS frameworks, shipping multiple applications, but you want them all to have the same look and feel. Shared CSS is easy enough, but what about more complex/structured components like cards, notices, toasts (or snackbars depending on your lingo), etc. As an example, maybe you're using material design, and think you can just rely on each frameworks implementation. What if a framework doesn't have a material implementation? I can tell you from experience that the look and feel of each material library varies greatly across frameworks. How do you build a component library that's useable across all of the frameworks you might have to deal with?

The answer is: Lit. It compiles to completely standards-compliant web components, has reactive state, and is incredibly small. Every framework can utilize web components, and with the recent end of IE11 support there is no worries about browser compatibility. In this session we'll cover some of the basic features of Lit, and even live code a component from scratch to demonstrate how simple it can be to spin up a shared component library that everyone can use.

CodeMash 2023 Sessionize Event

January 2023 Sandusky, Ohio, United States

Tim Huddle

Fellow Engineer @ Fuse by Cardinal Health

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top