© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LibbyDeveloping Web Components with Svelte https://doi.org/10.1007/978-1-4842-9039-2_7

7. Writing Documentation

Alex Libby1  
(1)
Belper, Derbyshire, UK
 

Throughout this book, we’ve created a host of new components to form our component library – they may only be simple ones, but as they say: we must start somewhere!

There is one important task we need to perform, and that is to document how these components work. Given we’re using Storybook (at least for most of them), then we can add some documentation files to each component, which are accessible from the Docs tab at the top of Storybook, as shown in Figure 7-1.

A screenshot of a Storybook window with a ...

Get Developing Web Components with Svelte: Building a Library of Reusable UI Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.