Skip to content

Commit

Permalink
docs(Search): add example of input shorthand (#1649)
Browse files Browse the repository at this point in the history
* add example to search docs

* Update package.json

* style(Docs): remove empty line
  • Loading branch information
josie11 authored and levithomason committed May 6, 2017
1 parent 5561613 commit 40cef9a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react'
import SearchExampleStandard from '../Types/SearchExampleStandard'

const SearchExampleInput = () => (
<SearchExampleStandard input={{ icon: 'search', iconPosition: 'left' }} />
)

export default SearchExampleInput
5 changes: 5 additions & 0 deletions docs/app/Examples/modules/Search/Variations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const SearchVariationsExamples = () => (
description='A search can have its results aligned to its left or right container edge.'
examplePath='modules/Search/Variations/SearchExampleAligned'
/>
<ComponentExample
title='Input'
description='A search can be passed an input via shorthand props.'
examplePath='modules/Search/Variations/SearchExampleInput'
/>
</ExampleSection>
)

Expand Down

0 comments on commit 40cef9a

Please sign in to comment.