You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jyoti Puri
a0e97f4681
|
3 years ago | |
---|---|---|
.. | ||
__snapshots__ | 3 years ago | |
README.mdx | 3 years ago | |
actionable-message.js | 3 years ago | |
actionable-message.stories.js | 3 years ago | |
actionable-message.test.js | 3 years ago | |
index.js | 3 years ago | |
index.scss | 3 years ago |
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="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>