# Components

Source: https://material.spynejs.com/components
Part of: Material shell gallery, Google's Material Design 3 for SpyneJS. Index: https://material.spynejs.com/llms.txt

The Material components the template has, one page each: what the thing is, the choices it has, and what an app model writes to ask for it. In the template a component is not something to import: it is plain markup with classes, drawn from the model.

## As the page shows it

The page’s own words, in its own order, read from the page as it is drawn in the light colour scheme. They were written for someone looking at the page: “above”, “below” and “marked” mean the drawn page. A thing the page draws is named here in its place (`Button:`, `Field:`, `Switch:`), and a box that reports what the reader does is as it starts, empty. What depends on the reader’s own window is left out.

One page for each. A component’s page shows the thing itself, the choices it has, and what an app model says to ask for it.

- [Button](https://material.spynejs.com/components/buttons.md): Five variants, five sizes, two shapes.
- [Card](https://material.spynejs.com/components/cards.md): A card that links, and the surface it sits on.
- [Text field](https://material.spynejs.com/components/text-fields.md): The outlined field, its floating label and its error line.
- [Snackbar](https://material.spynejs.com/components/snackbar.md): A brief report that leaves by itself.
- [Top app bar](https://material.spynejs.com/components/app-bar.md): The header, at the top and scrolled.
- [Navigation drawer](https://material.spynejs.com/components/drawer.md): The app’s destinations, in a panel at the side.
- [From a model](https://material.spynejs.com/components/from-a-model.md): The ruled keys at work, in the Shell’s own page items.
