diff --git a/docs/data/base/components/button/button.md b/docs/data/base/components/button/button.md index d6d3e92bd6c59b..4697542fce9970 100644 --- a/docs/data/base/components/button/button.md +++ b/docs/data/base/components/button/button.md @@ -10,14 +10,14 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/button/

Buttons let users take actions and make choices with a single tap.

-{{"component": "modules/components/ComponentLinkHeader.js", "design": false}} - ## Introduction The Unstyled Button component replaces the native HTML ` + + + + ); +} diff --git a/docs/data/joy/components/button/BasicButtons.tsx b/docs/data/joy/components/button/BasicButtons.tsx new file mode 100644 index 00000000000000..15c152d5d8029e --- /dev/null +++ b/docs/data/joy/components/button/BasicButtons.tsx @@ -0,0 +1,13 @@ +import * as React from 'react'; +import Button from '@mui/joy/Button'; +import Box from '@mui/joy/Box'; + +export default function BasicButtons() { + return ( + + + + + + ); +} diff --git a/docs/data/joy/components/button/BasicButtons.tsx.preview b/docs/data/joy/components/button/BasicButtons.tsx.preview new file mode 100644 index 00000000000000..4d33dc1940fa3f --- /dev/null +++ b/docs/data/joy/components/button/BasicButtons.tsx.preview @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/docs/data/joy/components/button/ButtonDisabled.js b/docs/data/joy/components/button/ButtonDisabled.js index a9a47de487c7a2..e048a8cbf14f45 100644 --- a/docs/data/joy/components/button/ButtonDisabled.js +++ b/docs/data/joy/components/button/ButtonDisabled.js @@ -2,7 +2,7 @@ import * as React from 'react'; import Box from '@mui/joy/Box'; import Button from '@mui/joy/Button'; -export default function ButtonVariants() { +export default function DisabledButtons() { return ( - - + + + ); } diff --git a/docs/data/joy/components/button/ButtonLoading.tsx b/docs/data/joy/components/button/ButtonLoading.tsx index 231860dc44b56c..cac8452c703c21 100644 --- a/docs/data/joy/components/button/ButtonLoading.tsx +++ b/docs/data/joy/components/button/ButtonLoading.tsx @@ -1,17 +1,22 @@ import * as React from 'react'; -import Stack from '@mui/joy/Stack'; -import SendIcon from '@mui/icons-material/Send'; +import Box from '@mui/joy/Box'; import Button from '@mui/joy/Button'; -export default function ButtonLoading() { +export default function LoadingButtons() { return ( - - - - + + + ); } diff --git a/docs/data/joy/components/button/ButtonLoading.tsx.preview b/docs/data/joy/components/button/ButtonLoading.tsx.preview index ca37d5ae89ed8c..7b260fd7a643ab 100644 --- a/docs/data/joy/components/button/ButtonLoading.tsx.preview +++ b/docs/data/joy/components/button/ButtonLoading.tsx.preview @@ -1,6 +1,12 @@ - - + + \ No newline at end of file diff --git a/docs/data/joy/components/button/ButtonLoadingIndicator.js b/docs/data/joy/components/button/ButtonLoadingIndicator.js new file mode 100644 index 00000000000000..231860dc44b56c --- /dev/null +++ b/docs/data/joy/components/button/ButtonLoadingIndicator.js @@ -0,0 +1,17 @@ +import * as React from 'react'; +import Stack from '@mui/joy/Stack'; +import SendIcon from '@mui/icons-material/Send'; +import Button from '@mui/joy/Button'; + +export default function ButtonLoading() { + return ( + + + + + ); +} diff --git a/docs/data/joy/components/button/ButtonLoadingIndicator.tsx b/docs/data/joy/components/button/ButtonLoadingIndicator.tsx new file mode 100644 index 00000000000000..231860dc44b56c --- /dev/null +++ b/docs/data/joy/components/button/ButtonLoadingIndicator.tsx @@ -0,0 +1,17 @@ +import * as React from 'react'; +import Stack from '@mui/joy/Stack'; +import SendIcon from '@mui/icons-material/Send'; +import Button from '@mui/joy/Button'; + +export default function ButtonLoading() { + return ( + + + + + ); +} diff --git a/docs/data/joy/components/button/ButtonLoadingIndicator.tsx.preview b/docs/data/joy/components/button/ButtonLoadingIndicator.tsx.preview new file mode 100644 index 00000000000000..ca37d5ae89ed8c --- /dev/null +++ b/docs/data/joy/components/button/ButtonLoadingIndicator.tsx.preview @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/docs/data/joy/components/button/ButtonsSimple.js b/docs/data/joy/components/button/ButtonsSimple.js new file mode 100644 index 00000000000000..88636b8fb0e9ee --- /dev/null +++ b/docs/data/joy/components/button/ButtonsSimple.js @@ -0,0 +1,12 @@ +import * as React from 'react'; +import Button from '@mui/joy/Button'; +import Box from '@mui/joy/Box'; + +export default function UnstyledButtonsSimple() { + return ( + + + + + ); +} diff --git a/docs/data/joy/components/button/ButtonsSimple.tsx.preview b/docs/data/joy/components/button/ButtonsSimple.tsx.preview new file mode 100644 index 00000000000000..b7b5add52ab6c2 --- /dev/null +++ b/docs/data/joy/components/button/ButtonsSimple.tsx.preview @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/docs/data/joy/components/button/button.md b/docs/data/joy/components/button/button.md index 36a8db10e4d12c..af047dabd94c79 100644 --- a/docs/data/joy/components/button/button.md +++ b/docs/data/joy/components/button/button.md @@ -8,120 +8,147 @@ unstyled: /base/react-button/ # Button -

Buttons allow users to take actions, and make choices, with a single tap.

+

Buttons let users take actions and make choices with a single tap.

## Introduction Buttons communicate actions that users can take. +The Joy UI Button component replaces the native HTML `; -} ``` +The Joy UI Button behaves similar to the native HTML ` +```