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

Function Button

packages/sanddance-explorer/src/controls/button.tsx:14–39  ·  view source on GitHub ↗
(props: IButtonProps)

Source from the content-addressed store, hash-verified

12}
13
14export function Button(props: IButtonProps) {
15 return (
16 <base.fluentUI.DefaultButton
17 {...props}
18 styles={{
19 root: {
20 backgroundColor: 'transparent',
21 height: '30px',
22 width: props.width,
23 padding: 0,
24 },
25 rootDisabled: {
26 backgroundColor: 'transparent',
27 },
28 icon: {
29 color: props.themePalette.themePrimary,
30 },
31 label: {
32 fontWeight: '400',
33 textAlign: props.textAlign || 'left',
34 },
35 }}
36 iconProps={{ iconName: props.iconName }}
37 />
38 );
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected