-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added example. * Added example. * Added example. * Added example. * Added example. * Added example. * Added example. * Added example. * Simplified handler. * Changed markup. * Changed syntax. * Added example. * Removed log. * Added example.
- Loading branch information
Sjaak Luthart
authored
Nov 4, 2017
1 parent
049839f
commit 77c9b29
Showing
21 changed files
with
431 additions
and
198 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import AdminBadge from 'anchor-ui/admin-badge'; | ||
const AdminBadgeExample = () => ( | ||
<section> | ||
<AdminBadge /> | ||
<AdminBadge text="Custom Text" /> | ||
<AdminBadge text="Inverted" inverted /> | ||
</section> | ||
); | ||
export default AdminBadgeExample; | ||
\`\`\` | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import Alert from 'anchor-ui/alert'; | ||
const AlertExample = ({ hideAlert }) => ( | ||
<section> | ||
<Alert text="Success!" type="success" hideAlert={hideAlert} /> | ||
<Alert text="Info!" type="info" hideAlert={hideAlert} /> | ||
<Alert text="Warning!" type="warning" hideAlert={hideAlert} /> | ||
<Alert text="Error!" type="error" hideAlert={hideAlert} /> | ||
</section> | ||
); | ||
export default AlertExample; | ||
\`\`\` | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import AppHeader from 'anchor-ui/app-header'; | ||
import Button from 'anchor-ui/button'; | ||
import colors from 'anchor-ui/settings/colors'; | ||
import IconExit from 'anchor-ui/icons/icon-exit'; | ||
import logo from '../../assets/images/logo.svg'; | ||
const AppHeaderExample = () => ( | ||
<AppHeader | ||
text="Anchor UI" | ||
icon={<img src={logo} alt="Anchor Chat" />} | ||
rightButton={ | ||
<Button iconButton> | ||
<IconExit color={colors.white} /> | ||
</Button> | ||
} | ||
/> | ||
); | ||
export default AppHeaderExample; | ||
\`\`\` | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import Avatar from 'anchor-ui/avatar'; | ||
const AvatarExample = () => ( | ||
<section> | ||
<Avatar image="https://avatars2.githubusercontent.com/u/3033357?s=120&v=4" /> | ||
<Avatar image="https://avatars3.githubusercontent.com/u/10127707?s=120&v=4" /> | ||
<Avatar image="https://avatars2.githubusercontent.com/u/16486197?v=3&s=120" status="online" /> | ||
<Avatar image="https://avatars1.githubusercontent.com/u/6596471?v=3&s=120" status="away" /> | ||
<Avatar image="https://avatars0.githubusercontent.com/u/14125280?v=3&s=120" status="offline" /> | ||
</section> | ||
); | ||
export default AvatarExample; | ||
\`\`\` | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import Badge from 'anchor-ui/badge'; | ||
const BadgeExample = () => ( | ||
<section> | ||
<Badge value={9} maxValue={9} /> | ||
<Badge value={10} maxValue={9} /> | ||
<Badge value={10} maxValue={9} inverted /> | ||
<Badge value={100} /> | ||
<Badge value={100} maxValue={99} /> | ||
<Badge value={1000} /> | ||
</section> | ||
); | ||
export default BadgeExample; | ||
\`\`\` | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export default ` | ||
\`\`\`jsx | ||
import React from 'react'; | ||
import Button from 'anchor-ui/button'; | ||
import IconEmoji from 'anchor-ui/icons/icon-emoji'; | ||
const ButtonExample = () => { | ||
<section> | ||
<Button> | ||
<p>Default</p> | ||
</Button> | ||
<Button inverted> | ||
<p>Inverted</p> | ||
</Button> | ||
<Button disabled> | ||
<p>Disabled</p> | ||
</Button> | ||
<Button flatButton> | ||
<p>Flat button</p> | ||
</Button> | ||
<Button iconButton> | ||
<IconEmoji /> | ||
</Button> | ||
</section> | ||
}; | ||
export default ButtonExample; | ||
\`\`\` | ||
`; |
Oops, something went wrong.