ButtonProps: MuiButtonBaseProps & LinkProps & {
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    fullWidth?: boolean;
    isLoading?: boolean;
    LinkComponent?: React.ElementType;
    sx?: SxProps<Theme>;
}

Type declaration

  • OptionalcustomAttribute?: {
        attribute: string;
        value: string | number;
    }

    Custom attribute for testing. Clickable and requested subcomponents will have a suffix "-[ComponentName]".

    • attribute: string
    • value: string | number
  • OptionalfullWidth?: boolean

    If set to true, the button will occupy the full width of its container.

  • OptionalisLoading?: boolean

    If true, a loading skeleton will be rendered instead of the component.

  • OptionalLinkComponent?: React.ElementType

    Component used to render a link if the href prop is provided.

  • Optionalsx?: SxProps<Theme>

    Prop for defining system overrides and additional CSS styles.