14 Advanced Svelte
This chapter covers
- Form validation
- Using CSS libraries
- Special elements
- Importing JSON files
- Creating component libraries
- Web components
This chapter will wrap up our coverage of Svelte with a collection of relatively unrelated topics. What they have in common is that they may not be needed for basic Svelte applications.
Web applications that require form input from users typically need to validate that input. There are third-party libraries for other web frameworks that assist with this. However, the form validation that is part of HTML is often sufficient and is easy to use. We will look at how to do so in a Svelte application.
CSS libraries generally provide three things. First is a set of common styles that make it ...
Get Svelte and Sapper in Action 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.