MCPcopy Create free account
hub / github.com/microsoft/SandDance / IconButton

Function IconButton

packages/sanddance-explorer/src/controls/iconButton.tsx:18–41  ·  view source on GitHub ↗
(props: IIconButtonProps)

Source from the content-addressed store, hash-verified

16}
17
18export function IconButton(props: IIconButtonProps) {
19 return (
20 <base.fluentUI.IconButton
21 {...props}
22 styles={{
23 root: {
24 color: props.themePalette.black,
25 },
26 rootHovered: {
27 background: 'transparent',
28 color: props.themePalette.themePrimary,
29 },
30 rootPressed: {
31 background: 'transparent',
32 },
33 menuIcon: {
34 display: 'none',
35 },
36 }}
37 iconProps={{ iconName: props.iconName }}
38 menuProps={props.menuProps}
39 />
40 );
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected