Skip to content

Instantly share code, notes, and snippets.

@bjankord
Created September 5, 2017 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjankord/c937e247df10fb974fea5ec37225e16e to your computer and use it in GitHub Desktop.
Save bjankord/c937e247df10fb974fea5ec37225e16e to your computer and use it in GitHub Desktop.
import React from 'react';
import Badge from 'terra-badge';
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live';
const BadgeIntentExample = (`
<div>
<Badge text="Default" />
{' '}
<Badge intent="primary" text="Primary" />
{' '}
<Badge intent="secondary" text="Secondary" />
{' '}
<Badge intent="positive" text="Positive" />
{' '}
<Badge intent="negative" text="Negative" />
{' '}
<Badge intent="warning" text="Warning" />
{' '}
<Badge intent="info" text="Info" />
</div>
`).trim();
class BadgeIntentSample extends React.Component {
render() {
return (
<LiveProvider code={BadgeIntentExample} scope={{ Badge: Badge }}>
<LiveEditor />
<LiveError />
<LivePreview />
</LiveProvider>
);
}
}
export default BadgeIntentSample;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment