diff --git a/src-example/components/molecules/Feature/index.js b/src-example/components/molecules/Feature/index.js
index 09912e8f..a244b6ba 100644
--- a/src-example/components/molecules/Feature/index.js
+++ b/src-example/components/molecules/Feature/index.js
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import styled from 'styled-components'
import { ifProp } from 'styled-tools'
-import { Icon, Link, Paragraph, Heading, Badge } from 'components'
+import { Icon, Link, Paragraph, Heading, Badge, PreformattedText } from 'components'
const Wrapper = styled.div`
position: relative;
@@ -31,7 +31,7 @@ const StyledBadge = styled(Badge)`
right: 1rem;
`
-const Feature = ({ icon, title, link, children, ...props }) => {
+const Feature = ({ icon, title, link, code, children, ...props }) => {
return (
{icon && }
@@ -40,6 +40,7 @@ const Feature = ({ icon, title, link, children, ...props }) => {
{link ? {title} : title}
{children}
+ {code && {code}}
{props.soon && soon}
@@ -52,6 +53,7 @@ Feature.propTypes = {
link: PropTypes.string,
soon: PropTypes.bool,
children: PropTypes.any,
+ code: PropTypes.node,
}
export default Feature
diff --git a/src-example/components/organisms/FeatureList/index.js b/src-example/components/organisms/FeatureList/index.js
index 7d4f06a5..8acc7824 100644
--- a/src-example/components/organisms/FeatureList/index.js
+++ b/src-example/components/organisms/FeatureList/index.js
@@ -1,7 +1,7 @@
import React from 'react'
import styled from 'styled-components'
-import { Feature, Link, Heading, PreformattedText, Paragraph } from 'components'
+import { Feature, Link, Heading, Paragraph } from 'components'
const Grid = styled.div`
display: flex;
@@ -39,41 +39,33 @@ const FeatureList = ({ ...props }) => (
icon="react"
link="https://facebook.github.io/react"
title="React"
+ code={''}
>
The Facebook's JavaScript library for building user interfaces using components.
-
- {''}
-
'}
>
The most popular declarative routing library for React and React Native.
-
- {''}
-
The awesome module bundler with Hot Module Replacement enabled.
-
- npm run build
-
The great testing framework used by Facebook to test all their Javascript code.
-
- npm run test
-
Optional features
@@ -85,21 +77,17 @@ const FeatureList = ({ ...props }) => (
icon="redux"
link="https://github.com/diegohaz/arc/tree/redux"
title="Redux"
+ code="git clone -b redux https://github.com/diegohaz/arc my-app"
>
The predictable state container for JavaScript apps.
-
- git clone -b redux https://github.com/diegohaz/arc my-app
-
Write once and run both on server and client.
-
- git clone -b redux-ssr https://github.com/diegohaz/arc my-app
-