Skip to content

CSS Parts API Reference

tap-avatar

NameDescription
avatarThe container that wraps the avatar component.
placeholderThe container that wraps the avatar's placeholder.
imageThe avatar image. Only shown when the image is present.
css
tap-avatar::part(avatar) { /* ... */ }
tap-avatar::part(placeholder) { /* ... */ }
tap-avatar::part(image) { /* ... */ }

tap-badge-wrapper

NameDescription
wrapperThe container that wraps the main content and the badge.
badgeThe container that positions the badge.
css
tap-badge-wrapper::part(wrapper) { /* ... */ }
tap-badge-wrapper::part(badge) { /* ... */ }

tap-badge

NameDescription
badgeThe main badge element.
iconThe icon inside the badge.
css
tap-badge::part(badge) { /* ... */ }
tap-badge::part(icon) { /* ... */ }

tap-banner

NameDescription
bannerThe main banner element.
contentThe content container inside the banner.
actionThe action container inside the banner.
extraThe extra slot container inside the hero variant.
css
tap-banner::part(banner) { /* ... */ }
tap-banner::part(content) { /* ... */ }
tap-banner::part(action) { /* ... */ }
tap-banner::part(extra) { /* ... */ }

tap-bottom-navigation

NameDescription
bottom-navigationThe main container for the bottom navigation bar.
css
tap-bottom-navigation::part(bottom-navigation) { /* ... */ }

tap-bottom-navigation-item

NameDescription
bottom-navigation-itemThe main container for the bottom navigation item.
css
tap-bottom-navigation-item::part(bottom-navigation-item) { /* ... */ }

tap-bottom-sheet

NameDescription
dimmerThe dimmer element darkens the background and is clickable to close the bottom sheet.
headerThe header of the bottom sheet component, containing the title and dismiss button.
bodyThe container that wraps the bottom sheet's content.
css
tap-bottom-sheet::part(dimmer) { /* ... */ }
tap-bottom-sheet::part(header) { /* ... */ }
tap-bottom-sheet::part(body) { /* ... */ }

tap-button

NameDescription
buttonThe button element.
css
tap-button::part(button) { /* ... */ }

tap-checkbox

NameDescription
checkboxThe main container for the checkbox.
css
tap-checkbox::part(checkbox) { /* ... */ }

tap-chip

NameDescription
chipThe button element representing the chip.
css
tap-chip::part(chip) { /* ... */ }

tap-chip-group

NameDescription
chip-groupThe main container for the chip group.
css
tap-chip-group::part(chip-group) { /* ... */ }

tap-divider

NameDescription
dividerThe main container for the divider.
css
tap-divider::part(divider) { /* ... */ }

tap-empty-state

NameDescription
containerThe root container of the empty state component a div.
iconThe container of the icon slot, a span.
contentThe wrapper around heading and description, a div.
headingThe heading element, a span.
descriptionThe description element, a p.
actionsThe container of the actions slot, a div.
css
tap-empty-state::part(container) { /* ... */ }
tap-empty-state::part(icon) { /* ... */ }
tap-empty-state::part(content) { /* ... */ }
tap-empty-state::part(heading) { /* ... */ }
tap-empty-state::part(description) { /* ... */ }
tap-empty-state::part(actions) { /* ... */ }

tap-icon-button

NameDescription
buttonThe button element.
css
tap-icon-button::part(button) { /* ... */ }

tap-modal

NameDescription
overlayThe overlay background when the modal is open.
dialogThe main container for the modal dialog.
image-containerThe container of the image element, a div.
imageThe image element, a img.
iconThe container of the icon slot, a div.
contentThe wrapper around title and description, a div.
titleThe title element, a span.
descriptionThe description element, a p.
actionsThe container of the actions slot, a div.
css
tap-modal::part(overlay) { /* ... */ }
tap-modal::part(dialog) { /* ... */ }
tap-modal::part(image-container) { /* ... */ }
tap-modal::part(image) { /* ... */ }
tap-modal::part(icon) { /* ... */ }
tap-modal::part(content) { /* ... */ }
tap-modal::part(title) { /* ... */ }
tap-modal::part(description) { /* ... */ }
tap-modal::part(actions) { /* ... */ }

tap-notice

NameDescription
noticeThe root container of the notice component a div.
iconThe container of the icon, a span.
content-rootThe wrapper around title, message and actions, a div.
messageThe message element, a p.
titleThe title element, a p.
actionsThe actions slot, a slot.
dismissThe dismiss button, a button.
css
tap-notice::part(notice) { /* ... */ }
tap-notice::part(icon) { /* ... */ }
tap-notice::part(content-root) { /* ... */ }
tap-notice::part(message) { /* ... */ }
tap-notice::part(title) { /* ... */ }
tap-notice::part(actions) { /* ... */ }
tap-notice::part(dismiss) { /* ... */ }

tap-pinwheel

NameDescription
pinwheelThe container that wraps the pinwheel component.
pinwheel-itemThe item that rendered in pinwheel.
css
tap-pinwheel::part(pinwheel) { /* ... */ }
tap-pinwheel::part(pinwheel-item) { /* ... */ }

tap-pinwheel-group

NameDescription
pinwheel-groupThe container that wraps the pinwheels.
pinwheel-selector-indicatorThe selector indicator that wraps selected row.
css
tap-pinwheel-group::part(pinwheel-group) { /* ... */ }
tap-pinwheel-group::part(pinwheel-selector-indicator) { /* ... */ }

tap-progress-indicator

NameDescription
progressbarThe container for the progress bar.
stepEach individual step in the progress bar.
css
tap-progress-indicator::part(progressbar) { /* ... */ }
tap-progress-indicator::part(step) { /* ... */ }

tap-radio

NameDescription
radioThe main container for the radio button.
css
tap-radio::part(radio) { /* ... */ }

tap-radio-group

NameDescription
radio-groupThe main container for the radio group.
css
tap-radio-group::part(radio-group) { /* ... */ }

tap-row

NameDescription
rowThe main container for the row.
leadingThe container for the leading slot.
contentThe container for the content slot.
trailingThe container for the trailing slot.
navigableThe container for the navigable icon.
css
tap-row::part(row) { /* ... */ }
tap-row::part(leading) { /* ... */ }
tap-row::part(content) { /* ... */ }
tap-row::part(trailing) { /* ... */ }
tap-row::part(navigable) { /* ... */ }

tap-segmented-button

NameDescription
buttonThe main container for the button.
css
tap-segmented-button::part(button) { /* ... */ }

tap-segmented-button-group

NameDescription
button-groupThe main container for the button group.
css
tap-segmented-button-group::part(button-group) { /* ... */ }

tap-skeleton

NameDescription
skeletonThe skeleton element
css
tap-skeleton::part(skeleton) { /* ... */ }

tap-spinner

NameDescription
svgThe svg tag that represents spinner component.
css
tap-spinner::part(`svg`) { /* ... */ }

tap-step-indicator

NameDescription
stepsThe container for the steps.
stepEach individual step.
css
tap-step-indicator::part(steps) { /* ... */ }
tap-step-indicator::part(step) { /* ... */ }

tap-stepper

NameDescription
stepperThe container that wraps the stepper component.
decrease-buttonThe button that contains minus icon and decrease the value.
increase-buttonThe button that contains plus icon and increases the value.
valueThe p tag that shows the value.
unitThe p tag that shows the unit and will be hidden if unit not exists.
css
tap-stepper::part(stepper) { /* ... */ }
tap-stepper::part(decrease-button) { /* ... */ }
tap-stepper::part(increase-button) { /* ... */ }
tap-stepper::part(value) { /* ... */ }
tap-stepper::part(unit) { /* ... */ }

tap-switch

NameDescription
switchThe container that wraps the switch component.
inputThe input element that represents the switch's toggle functionality.
sliderThe slider element that visually represents the switch's state.
css
tap-switch::part(switch) { /* ... */ }
tap-switch::part(input) { /* ... */ }
tap-switch::part(slider) { /* ... */ }

tap-text-field

NameDescription
fieldThe main container for the text field.
labelThe label for the text field.
containerThe container for the input and any leading/trailing elements.
inputThe input element.
captionThe caption for the text field.
leadingThe leading for the text field.
trailingThe trailing for the text field.
css
tap-text-field::part(field) { /* ... */ }
tap-text-field::part(label) { /* ... */ }
tap-text-field::part(container) { /* ... */ }
tap-text-field::part(input) { /* ... */ }
tap-text-field::part(caption) { /* ... */ }
tap-text-field::part(leading) { /* ... */ }
tap-text-field::part(trailing) { /* ... */ }

tap-textarea

NameDescription
fieldThe main container for the textarea.
labelThe label for the input.
containerThe container for the input.
inputThe input element.
captionThe caption for the textarea.
css
tap-textarea::part(field) { /* ... */ }
tap-textarea::part(label) { /* ... */ }
tap-textarea::part(container) { /* ... */ }
tap-textarea::part(input) { /* ... */ }
tap-textarea::part(caption) { /* ... */ }

tap-toast

NameDescription
toastThe main container for the toast notification.
iconThe container for the icon.
messageThe container for the message.
dismissThe container for the dismiss button.
css
tap-toast::part(toast) { /* ... */ }
tap-toast::part(icon) { /* ... */ }
tap-toast::part(message) { /* ... */ }
tap-toast::part(dismiss) { /* ... */ }