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
George Marshall 006d90fee7
Deprecate JS version of Box in favor of TS version (#19530)
* Initail deprecation messages and updates

* Updating spelling of favour to US spelling favor
2023-06-08 13:37:09 -07:00
..
__snapshots__
actionable-message.js Deprecate JS version of Box in favor of TS version (#19530) 2023-06-08 13:37:09 -07:00
actionable-message.stories.js
actionable-message.test.js
index.js
index.scss
README.mdx

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="components-ui-actionablemessage--default-story" />
</Canvas>

## Props

<ArgsTable of={ActionableMessage} />

### One Action

Add actionable message component with one button

<Canvas>
  <Story id="components-ui-actionablemessage--one-action" />
</Canvas>

### Two Actions

Add actionable message component with two buttons

<Canvas>
  <Story id="components-ui-actionablemessage--two-actions" />
</Canvas>

### Left Aligned

Align actionable message component's text to left

<Canvas>
  <Story id="components-ui-actionablemessage--left-aligned" />
</Canvas>

### With Icon

Add tooltip icon to the left of the component

<Canvas>
  <Story id="components-ui-actionablemessage--with-icon" />
</Canvas>