In this chapter, notification is the common theme running through each component – it’s all about telling our users, customers, or visitors of something they need to be aware of in any site using one of these components. This time around, we’re going to create Alert, Dialog, and Tooltip components; all will be based on standard HTML markup but customized for our library and set (like the others) for use in any framework, and not just Svelte.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Creating Notification Components

  • Alex Libby

摘要

In this chapter, notification is the common theme running through each component – it’s all about telling our users, customers, or visitors of something they need to be aware of in any site using one of these components. This time around, we’re going to create Alert, Dialog, and Tooltip components; all will be based on standard HTML markup but customized for our library and set (like the others) for use in any framework, and not just Svelte.