ButtonConfig
Example
ts
{
color: '#555',
fontFamily: 'Arial',
fontSize: 12,
fontWeight: 'normal',
backgroundColor: '#e2e2e2',
borderColor: '#e2e2e2',
borderWidth: 0,
borderRadius: 4
}Properties
Base Props
backgroundColor
- Type:
string - Default:
'#e2e2e2'
Specify the button background color using a CSS color string.
borderWidth
- Type:
number - Default:
0
Width of the border in pixels. Set to 0 for no border.
borderColor
- Type:
string - Default:
'#e2e2e2'
Specify the button border color using a CSS color string.
borderRadius
- Type:
number - Default:
4
Border radius of the button in pixels.
TypeScript
ts
interface ButtonConfig extends LabelConfig {
backgroundColor?: string;
borderWidth?: number;
borderColor?: string;
borderRadius?: number;
}