joyent-portal/packages/ui-toolkit/src/message
2017-10-12 20:15:41 +01:00
..
index.js feat(ui-toolkit): add syntax highlighting to styleguide 2017-10-11 12:01:26 +01:00
Readme.md style: format markdown 2017-10-12 20:15:41 +01:00

Success/Educational

const { Message, Title, Description } = require('.');

<Message>
  <Title>Choosing deployment data center</Title>
  <Description>
    Not all data centres have all configurations of instances available. Make
    sure that you choose the data center that suits your requirements. Learn
    more
  </Description>
</Message>;

Error

const { Message, Title, Description } = require('.');

<Message error>
  <Title>Choosing deployment data center</Title>
  <Description>Oh no</Description>
</Message>;

Warning

const { Message, Title, Description } = require('.');

<Message warning>
  <Title>Choosing deployment data center</Title>
  <Description>There were some issues</Description>
</Message>;