Skip to content

CSS Parts API Reference

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-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-nps

NameDescription
containerThe container that wraps the component.
dotThe dot that represents the selected value on the slider.
labelThe label displaying the description or value of the slider.
rateThe element that shows the selected rate.
css
tap-nps::part(container) { /* ... */ }
tap-nps::part(dot) { /* ... */ }
tap-nps::part(label) { /* ... */ }
tap-nps::part(rate) { /* ... */ }

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-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-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-group

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

tap-radio

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

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-group

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

tap-segmented-button

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

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-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) { /* ... */ }