Skip to content

Commit

Permalink
doc(modal): adding import sass and css in readme.md (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Debaerdm authored and guillaumechervetaxa committed Feb 8, 2019
1 parent 92d008e commit 062d508
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/Modal/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ npm i "@axa-fr/react-toolkit-modal-default"

For more information about style component, you can see the [Modal Style on Toolkit-core ](http://toolkit-intranet-axa.azurewebsites.net/#/modal)

### Import

```javascript
import '@axa-fr/react-toolkit-modal/dist/modal.scss
/* or */
import '@axa-fr/react-toolkit-modal/dist/af-modal.css
```

### Exemple

```javascript
import React from 'react';
import Modal from '@axa-fr/react-toolkit-modal';

import '@axa-fr/react-toolkit-modal/dist/modal.scss
const MyModal => () => (
<Modal
classModifier={text('classModifier', '')}
Expand Down Expand Up @@ -46,4 +56,3 @@ const MyModal => () => (
</Modal>
)
```

0 comments on commit 062d508

Please sign in to comment.