-
Notifications
You must be signed in to change notification settings - Fork 6
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
9 changed files
with
64 additions
and
3 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,23 @@ | ||
# `<CssResetMinimalistic2>` | ||
|
||
## Usage | ||
|
||
Simply render it in your React app | ||
|
||
```jsx | ||
import CssResetMinimalistic2 from 'mol-fe-react/lib/reset/CssResetMinimalistic2'; | ||
|
||
<CssResetMinimalistic2 /> | ||
``` | ||
|
||
## Contents | ||
|
||
```js | ||
{ | ||
'*': { | ||
pad: 0, | ||
mar: 0, | ||
bd: 0, | ||
}, | ||
} | ||
``` |
3 changes: 3 additions & 0 deletions
3
src/reset/CssResetMinimalistic2/__tests__/__snapshots__/index.test.ts.snap
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,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<CssResetMinimalistic2> renders as expected 1`] = `"<style>*{padding:0;margin:0;border:0;}</style>"`; |
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,11 @@ | ||
import {createElement as h} from 'react'; | ||
import {renderToStaticMarkup} from 'react-dom/server'; | ||
import CssResetMinimalistic2 from '..'; | ||
|
||
describe('<CssResetMinimalistic2>', () => { | ||
it('renders as expected', () => { | ||
const html = renderToStaticMarkup(h(CssResetMinimalistic2)); | ||
|
||
expect(html).toMatchSnapshot(); | ||
}); | ||
}); |
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,13 @@ | ||
import createCssResetComponent from '../createCssResetComponent'; | ||
|
||
export const css = { | ||
'*': { | ||
pad: 0, | ||
mar: 0, | ||
bd: 0, | ||
}, | ||
}; | ||
|
||
const CssResetMinimalistic2 = createCssResetComponent(css); | ||
|
||
export default CssResetMinimalistic2; |
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,10 @@ | ||
import {createElement as h} from 'react'; | ||
import {storiesOf} from '@storybook/react'; | ||
import {action} from '@storybook/addon-actions'; | ||
import {linkTo} from '@storybook/addon-links'; | ||
import CssResetMinimalistic2 from '.'; | ||
|
||
storiesOf('reset', module) | ||
.add('CssResetMinimalistic2', () => | ||
h(CssResetMinimalistic2) | ||
); |