2022-08-02 08:39:37 +02:00
|
|
|
import { Meta, Story } from "@storybook/addon-docs";
|
|
|
|
|
import { Button } from "../src";
|
|
|
|
|
|
|
|
|
|
<Meta title="Usage" parameters={{
|
|
|
|
|
storyshots: { disable: true }
|
|
|
|
|
}} />
|
|
|
|
|
|
|
|
|
|
In confirmation dialogs, there are two actions.<br/>
|
|
|
|
|
One to cancel the current process and one to confirm it.<br/>
|
|
|
|
|
Aborting is always the secondary action, confirmation always the primary.
|
|
|
|
|
Focus is always on the cancelling action.
|
|
|
|
|
|
|
|
|
|
<Story name="Confirmation Dialog">
|
2022-08-29 10:23:40 +02:00
|
|
|
<div>
|
|
|
|
|
<h4>Delete User</h4>
|
2022-08-02 08:39:37 +02:00
|
|
|
<p>Do you really want to delete this user ?</p>
|
2022-08-29 10:23:40 +02:00
|
|
|
<div>
|
2022-08-02 08:39:37 +02:00
|
|
|
<Button variant="secondary">Cancel</Button>
|
|
|
|
|
<Button variant="primary">Delete</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Story>
|