1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/ui/actionable-message
2022-01-26 23:48:43 +05:30
..
__snapshots__ Add icon to actionable message component (#11409) 2021-07-02 14:07:56 -05:00
actionable-message.js Adding e2e test for edit gas fee modal (#13303) 2022-01-20 00:04:43 +05:30
actionable-message.stories.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
actionable-message.test.js Confirm transaction page - onchain failure handling (#12743) 2021-11-24 22:32:53 +05:30
index.js Add icon to actionable message component (#11409) 2021-07-02 14:07:56 -05:00
index.scss EIP-1559 v2 - small fixes (#13392) 2022-01-26 23:48:43 +05:30
README.mdx Fix Actionable message for new Storybook format (#12874) 2021-12-07 10:01:17 -08:00

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import ActionableMessage from '.';

# Actionable Message

Popup component that give the user information. Actionable Message component can generate a tooltip and a maximum of two action buttons.

<Canvas>
  <Story id="ui-components-ui-actionable-message-actionable-message-stories-js--default-story" />
</Canvas>

## Component API

<ArgsTable of={ActionableMessage} />

### One Action

Add actionable message component with one button

<Canvas>
  <Story id="ui-components-ui-actionable-message-actionable-message-stories-js--one-action" />
</Canvas>

### Two Actions

Add actionable message component with two buttons

<Canvas>
  <Story id="ui-components-ui-actionable-message-actionable-message-stories-js--two-actions" />
</Canvas>

### Left Aligned

Align actionable message component's text to left

<Canvas>
  <Story id="ui-components-ui-actionable-message-actionable-message-stories-js--left-aligned" />
</Canvas>

### With Icon

Add tooltip icon to the left of the component

<Canvas>
  <Story id="ui-components-ui-actionable-message-actionable-message-stories-js--with-icon" />
</Canvas>