Skip to main content
Skip table of contents

Button

Overview

Button is used to trigger an action on a web page. Button is an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it performs a programmable action, such as submitting a form or opening a dialog.

DartIDE-CUC-Button

Please refer to this for more information: https://mui.com/material-ui/react-button/.

Import

CODE
import { Button } from '@mui/material';

The above source will be imported automatically after dragging and dropping the Basic Component to the UI Preview Panel.

Property

Property:

Name

Default

Description

Id-name

Placeholder: <id-name>

The Id-name of the created component.

Default Style

Color: None

Variant: None

The Default Style of the created component includes Color, Variant.

State

State: Normal

The State of the created Component.

Margin and Padding

Size Unit: Px

The component Margin and Padding with many selectable Size Units.

Size

Type: None

Full-width: False

Size Unit: Px

The component Size of Width and Height with many selectable Size Units, Type, and Full-width.

Layout

Position: None

Size Unit: Px

The component Layout includes Position and Top - Right - Bottom - Left with many selectable Size Units.

Text

Font-family: None

Font-weight: Normal

Text-align: Left

Size Unit: Px

The component Text includes Text, Font-family, Font-size, Font-weight, Font-color, Text-align.

Icon

Start: Disabled

End: Disabled

The Icon includes Start and End Icon, and File-upload Button.

General

Disabled: False

Visibility: None

Opacity: 100%

The component General includes Disabled, Visibility, Opacity, and Background.

Advanced Style

The component Advanced Style includes Classname and Inline Style addition.

Code Sample:

CODE
<Button
  onClick={() => {
    alert('clicked');}}>
  Click me
</Button>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.