MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / buttonClass

Function buttonClass

core/src/components/action-sheet/action-sheet.tsx:673–681  ·  view source on GitHub ↗
(button: ActionSheetButton)

Source from the content-addressed store, hash-verified

671}
672
673const buttonClass = (button: ActionSheetButton): CssClassMap => {
674 return {
675 'action-sheet-button': true,
676 'ion-activatable': !button.disabled,
677 'ion-focusable': !button.disabled,
678 [`action-sheet-${button.role}`]: button.role !== undefined,
679 ...getClassMap(button.cssClass),
680 };
681};

Callers 2

renderMethod · 0.70

Calls 1

getClassMapFunction · 0.90

Tested by

no test coverage detected