CodeAI

Button

Triggers an action with a single tap or click. Contained, outlined, and text styles across primary, secondary, tertiary, orange, and error colors.

Appearance

Content

State

Layout & behavior

Props — Button
View MUI docs
PropTypeDescription
variant"contained" | "outlined" | "text"Visual style: filled, outline, or text-only.
color"primary" | "secondary" | "tertiary" | "orange" | "error"Color role for the button surface and text. Tertiary is only for text + icon-only; orange is only for the run button (contained). Other combos fall back (tertiary→secondary, orange→primary).
size"large" | "medium" | "small" | "extraSmall"Control height. Default medium (40).
iconOnlybooleanSquare icon-only geometry; inferred when no children.
startIconNameFaIconNameLeading Font Awesome icon.
endIconNameFaIconNameTrailing Font Awesome icon.
disabledbooleanDisables interaction.
fullWidthbooleanStretches to the container width.
childrenReactNodeButton label content.