Created
September 5, 2017 14:21
-
-
Save bjankord/c937e247df10fb974fea5ec37225e16e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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