Skip to main content

wiremark Component Library Reference

This reference is generated from meta/element-specs.json -- the single source of truth for wiremark's component and property coverage. It lists the elements wiremark supports and, for each, its properties; anything out of scope is omitted. Do not edit it by hand: change the JSON and run npm run docs:reference.

Components

Layout

Box

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
widthsizecontentyesw
heightsizecontentyesh
elevationnumeric0no
outlineenumnone, solid, dashed, dottednoneyes

Stack

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
directionenumrow, row-reverse, column, column-reversecolumnyes
spacingnumeric0nogap
dividerbooleanfalseyes
widthsizecontentyesw
heightsizecontentyesh
elevationnumeric0no
outlineenumnone, solid, dashed, dottednoneyes

Grid

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
columnsnumeric12nocols
spacingnumeric0nogap
widthsize100%yesw
heightsizecontentyesh

Divider

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
orientationenumhorizontal, verticalhorizontalyes
variantenumsolid, dashed, dottedsolidyes

Spacer

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
widthsize1yesw
heightsize1yesh

Surfaces

Card

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
elevationnumeric1no
variantenumelevation, outlinedelevationyes

CardHeader

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
titlestringyeslabel, text
subheaderstringnosubtext
iconiconno
closeIconiconCloseno

CardContent

Accepts children: yes

No configurable properties.

CardActions

Accepts children: yes

No configurable properties.

AppBar

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
variantenumregular, denseregularyes
backgroundenumhatch, crosshatchhatchyesHand-drawn tint pattern: hatch (single diagonal) or crosshatch (both diagonals).
denseBackgroundbooleanfalseyesPacks the background tint's hatch lines closer together.

Toolbar

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
variantenumregular, denseregularyes

AccordionHeader

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
titlestringyeslabel, text
expandedbooleanfalseyes
disabledbooleanfalseyes
iconiconChevronRightnoChevronDown used by default if expanded

AccordionBody

Accepts children: yes

No configurable properties.

Drawer

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
anchorenumleft, right, top, bottomleftyesv1.0.
variantenumpermanent, persistent, temporarytemporaryyesv1.0.
openbooleanfalseyesDrawn open by default in wireframe.

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
hrefreferencenotoDSL to=#id (frame-level only).
underlinebooleantrueyes
variantenumh1, h2, h3, h4, h5, h6, subtitle1, subtitle2, body1, body2, caption, overline, buttoninherityesShares Typography scale.
fillerstringnoFiller control.

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
selectedbooleanfalseyes
disabledbooleanfalseyes

Accepts children: yes

No configurable properties.

Tabs

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
orientationenumhorizontal, verticalhorizontalyes
variantenumstandard, scrollable, fullWidthstandardyes

Tab

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
separatorstring/yes

Stepper

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
orientationenumhorizontal, verticalhorizontalyes

Step

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
activebooleanfalseyes
completedbooleanyes

Pagination

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
countnumeric1no
pagenumeric1no

BottomNavigation

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
valuestringno
showLabelsbooleanfalseno

BottomNavigationAction

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
iconiconno

Content

Typography

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
variantenumh1, h2, h3, h4, h5, h6, subtitle1, subtitle2, body1, body2, caption, overline, buttonbody1yes
alignenuminherit, left, center, right, justifyinherityes
noWrapbooleanfalseyes
fillerstring1 lineno

Button

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
variantenumtext, outlined, containedtextyes
hrefreferencenoto
sizeenumsmall, medium, largemediumyes
disabledbooleanfalseyes
startIconiconno
endIconiconno
fullWidthbooleanfalseyesExpress via sizing instead.
backgroundenumhatch, crosshatchhatchyes
denseBackgroundbooleanfalseyes

TextField

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
variantenumoutlined, filled, standardoutlinedyes
valuestringno
typeenumtext, password, email, numbertextyes
multilinebooleanfalseyes
requiredbooleanfalsenotrue
placeholderstringno
helperTextstringnohelper
errorbooleanfalseyes
disabledbooleanfalseyes
rowsnumeric1no
sizeenumsmall, mediummediumyes
fullWidthbooleanfalseyes
backgroundenumhatch, crosshatchhatchyes
denseBackgroundbooleanfalseyes
toreferenceno
fillerstringlabel fillno

Img

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
ratiorationo
srcstringno

Avatar

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
variantenumcircular, rounded, squarecircularyes
srcstringno
labelstringyes

Chip

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
variantenumfilled, outlinedfilledyes
sizeenumsmall, mediummediumyes
backgroundenumhatch, crosshatchhatchyes
denseBackgroundbooleanfalseyes
fillerstringChipno

Icon

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
iconiconyes
sizeenumsmall, medium, largemediumyes

List

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
densebooleanfalseyes

ListItem

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
iconiconno
toreferenceno
fillerstring1 lineno

Table

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
sizeenumsmall, mediummediumyes

TableHead

Accepts children: yes

No configurable properties.

TableBody

Accepts children: yes

No configurable properties.

TableFooter

Accepts children: yes

No configurable properties.

TableRow

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
selectedbooleanfalseyes

TableCell

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
alignenumleft, center, rightleftno

Badge

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
badgeContentstringyes
variantenumstandard, dotstandardyes

Inputs

Control

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
variantenumradio, checkbox, switchcheckboxyes
checkedbooleanfalseyes
disabledbooleanfalseyes
sizeenumsmall, medium, largemediumyes
backgroundenumhatch, crosshatchhatchyesTint pattern for the checked switch track: hatch (single diagonal) or crosshatch (both diagonals).
denseBackgroundbooleanfalseyesPacks the checked switch track's hatch lines closer together.

Select

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyes
variantenumoutlined, filled, standardoutlinedyes
valuestringnov, val

Option

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
labelstringyestext
subtextstringno
selectedbooleanfalseyes
startIconiconno
endIconiconno

Slider

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
valuenumeric0yesn, v, val
minnumeric0no
maxnumeric100no
orientationenumhorizontal, verticalhorizontalyes

Rating

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
valuenumeric0yesn, v, val
maxnumeric100no
iconiconStarno
emptyIconiconStarBorderno

ToggleButtonGroup

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
orientationenumhorizontal, verticalhorizontalyes
sizeenumsmall, medium, largemediumyes

ToggleButton

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
iconiconyes
selectedbooleanfalseyes
sizeenumsmall, medium, largemediumyes

ButtonGroup

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
variantenumtext, outlined, containedoutlinedyes
orientationenumhorizontal, verticalhorizontalyes

Fab

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
variantenumcircular, extendedcircularyes
sizeenumsmall, medium, largemediumyes
iconiconyes

Feedback

Alert

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
severityenumerror, warning, info, successsuccessyes
variantenumstandard, filled, outlinedstandardyes
labelstringyes

Dialog

Accepts children: yes

NameTypeValuesDefaultKeylessAliasesNotes
sizeenumfullScreen, content, xs, sm, md, lg, lxcontentyes

Snackbar

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
positionenuminline, topLeft, topRight, bottomLeft, bottomRightinlineyes
messagestringyeslabel

Progress

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
variantenumlinear, circularindeterminateyesv1.0.
valuenumeric0yesn, v, val
minnumeric0no
maxnumeric100no
thicknessenumsmall, medium, largemediumyesBar height for linear; ring/arc stroke width for circular.

Skeleton

Accepts children: no

NameTypeValuesDefaultKeylessAliasesNotes
variantenumtext, circular, rectangular, roundedrectangularyes
widthsizeyesw
heightsizeyesh