-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
0 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
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,50 @@ | ||
import React from 'react'; | ||
import cx from 'classnames'; | ||
import dedent from 'dedent'; | ||
|
||
import Specimen from '../../../components/Specimen/Specimen'; | ||
import { D, H, T, A, C } from '../../../components/Scaffold/Scaffold'; | ||
|
||
import Tabs from '../../../../components/Tabs/Tabs'; | ||
import Tab from '../../../../components/Tabs/Tab'; | ||
|
||
import m from '../../../../globals/modifiers.css'; | ||
|
||
const TabsDocumentation = () => ( | ||
<div> | ||
<H level={ 1 }>Loader</H> | ||
<T elm="p" className={ cx(m.mtr, m.largeI, m.demi) }> | ||
<C>Tabs</C> provide an easy way to navigate between views on a single page, | ||
where content is related. For cases when you need page level tabs, | ||
<A href="/patterns/tab-bar">TabBar</A>. | ||
</T> | ||
<D> | ||
<Specimen | ||
classNames={ { | ||
specimenContainer: m.par, | ||
} } | ||
code={ dedent` | ||
<Tabs> | ||
<Tab label="One"> | ||
Barry Chuckle | ||
</Tab> | ||
<Tab label="Two"> | ||
Paul Chuckle | ||
</Tab> | ||
</Tabs> | ||
` } | ||
> | ||
<Tabs> | ||
<Tab label="One"> | ||
Barry Chuckle | ||
</Tab> | ||
<Tab label="Two"> | ||
Paul Chuckle | ||
</Tab> | ||
</Tabs> | ||
</Specimen> | ||
</D> | ||
</div> | ||
); | ||
|
||
export default TabsDocumentation; |
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,9 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
|
||
import Tabs from './Tabs'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
render(<Tabs />, div); | ||
}); |