Skip to content
On this page

Home > @plaidev/karte-action-sdk > ButtonProps

ButtonProps type

Signature:

typescript
type ButtonProps = CommonProps & ClickableProps & ShadowProps & LinkProps & WithIconProps & BorderProps & {
    label?: string;
    // size
    size?: keyof typeof BUTTON_SIZE;
    height?: Properties["height"];
    paddingLeft?: Properties["paddingLeft"];
    paddingRight?: Properties["paddingRight"];
    fontSize?: Properties["fontSize"];
    // theme
    theme?: keyof typeof BUTTON_THEME;
    color?: Properties["color"];
    backgroundColor?: Properties["backgroundColor"];
    // others
    fontWeight?: Properties["fontWeight"];
    round?: keyof typeof BUTTON_ROUND;
    width?: Properties["width"];
    wrap?: "wrap" | "nowrap";
};

References: CommonProps, ClickableProps, ShadowProps, LinkProps, WithIconProps, BorderProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND