concept src in category svelte
appears as: src

This is an excerpt from Manning's book Svelte and Sapper in Action.
The value of Boolean props can be inferred from the absence of the prop, or its presence without specifying a value, as will be demonstrated in listing 5.5. The
StopLightcomponent renders a red or green circle. Theonprop value is used to determine the color. When the prop is omitted, its value defaults tofalse. When the prop name is specified without a value, its value is inferred to betrue.
Create a .sveltefile for each component in thesrcdirectory.
.button { background-color: white; border-radius: 10px; color: gray; padding: 1rem; text-decoration: none; }