Icons
Nine starter icons for contact details and what they belong to - phone, mobile, email, web, location, person, company, document and vehicle - drawn as one outlined set that one style recolours.
- Nine outlined icons. Phone, mobile, email, web, location, person, building, document and truck, each drawn on a 24-unit square in lines with round caps and joins.
- Placed in the flow. A
useplaces one, most often in a table cell beside the text it marks. - One set, two styles. Every icon draws in
iconInk(a 2-unit slate stroke, no fill) and takes its width fromiconSize(11 by default), so declaring those two restyles the whole set. - Named for a screen reader. Each svg carries a title, such as "Phone" or "Website", that a screen reader announces.
| Component | Draws | Read as |
|---|---|---|
icon-phone | a handset | Phone |
icon-mobile | a mobile phone | Mobile phone |
icon-email | an envelope | |
icon-web | a globe | Website |
icon-location | a map pin | Address |
icon-person | a head and shoulders | Person |
icon-building | an office building | Company |
icon-document | a page with a folded corner | Document |
icon-truck | a delivery truck | Vehicle |
Place one where it belongs, most often in a table cell beside the text it marks:
{ "table": { "widths": [1, 12], "rows": [ [ { "use": { "name": "icon-phone" } }, { "p": "+237 6 55 01 20 40" } ] ] } }
Every icon draws its lines in a style named iconInk and takes its width from one named iconSize, so declaring those two restyles the whole set at once: the Engagement Letter draws them in purple, the Reference Letter in blue, the consignment notes in slate at 9 points. Each is an svg with its name as its title, which a screen reader announces. See Customizing a component.
Features used: SVG
- Output
- Template
- Data
The component on a sheet of its ownTry in Playground →