Sign up and get 15% off every plan.

Sign up
Menu
InputsMaterial UIMIT licenceFree

Button

A button in three styles: text, filled and outlined.

Add it to your project

Or install the packages yourselfTerminal
npm install @mui/material

The code

components/button-demo.tsxReact
/**
 * Demo from Material UI, https://mui.com/material-ui/ (docs demo BasicButtons)
 * MIT License, Copyright (c) 2014 Call-Em-All. Full text: https://github.com/mui/material-ui/blob/master/LICENSE
 */
'use client';
import Stack from '@mui/material/Stack';
import Button from '@mui/material/Button';

export default function BasicButtons() {
  return (
    <Stack spacing={2} direction="row">
      <Button variant="text">Text</Button>
      <Button variant="contained">Contained</Button>
      <Button variant="outlined">Outlined</Button>
    </Stack>
  );
}