Skip to content

Component API

Inputs

Autocomplete

Button

TypeModifiersDefaultDescription
Disabled[disabled], .disabled-If applied, the button is disabled.
Icon-only.icon-only-If applied, the button won't show its inner label.
Sizes.small, .medium, .large.mediumThe size of the button.
Variants.text, .outlined, .tonal, .filled, .elevated.textThe variant to use.

Button group

Checkbox

Color

Date

File

Radio

Range

Select

Textarea

Text input

Data display

Badge

TypeModifiersDefaultDescription
Alignment&.start-start, &.start-end, &.end-start, &.end-end.start-endWhere the badge should be placed over the child.
Color&.danger, &.info, &.success, &.warning-Optional colors.
VariantsDefault, .dotDefaultThe variant to use.
VisibilityDefault, .invisibleDefaultDefines if the badges visibility.

Chip

TypeModifiersDefaultDescription
Containerdiv.chip, a.chip, button.chip-Container element type.
Children& > .text, & > svg-Optional child content.
Disabled.disabled,[disabled]-If applied, the chip is disabled .
Sizes.small, default, .multilinedefaultThe size to use.
Variants.tonal,.outlined.tonalThe variant to use.

Divider

List

Table

Tooltip

Typography

Feedback

Alert

TypeModifiersDefaultDescription
Children& > .content, & > svg-Optional child content.
Severitiesneutral, .danger, .info, .warningneutralThe severity to use.
Variants.tonal, .outlined.tonalThe variant to use.

Dialog

A <dialog> element on its own doesn't do much. It's recommended to use it in combination with the card component.

See Card API

Progress

Snackbar

TypeModifiersDefaultDescription
Absolute&.absolute, &.visible-Optional classes needed for absolute positioning.
Actions& > .actions > <action button> / <icon button>-Optional action.
Container.snackbar-Container element.
Children& > .content, & > .actions-Optional child content.
Position.top-left, .top-center, .top-right, .bottom-left, .bottom-center, .bottom-right.bottom-leftDetermines where the Snackbar is positioned.

Spinner

Surfaces

Accordion

TypeModifiersDefaultDescription
Anatomy& > summary, & > .content, & > .actions-Optional wrappers for child content.
Variants.text, .elevated, .tonal, .outlined,.textThe variant to use.

Card

TypeModifiersDefaultDescription
Children& > <hgroup>, & > .content, & > .actions-Optional wrappers for child content.
Variants.text, .outlined, .tonal, .elevated.textThe variant to use.