Generate pattern library for components
This commit is contained in:
parent
d46773cc94
commit
83e13c8b36
11 changed files with 193 additions and 4 deletions
15
sample-site/csvdownload.example.md
Normal file
15
sample-site/csvdownload.example.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Basic example
|
||||
|
||||
```html
|
||||
const data = [
|
||||
['name', 'age'],
|
||||
['Ahmed', 12],
|
||||
['John', 8]
|
||||
];
|
||||
<CSVDownload data={data} />
|
||||
```
|
||||
## Note:
|
||||
> We avoid to make live examples for `CSVDownload` component, since mounting
|
||||
> this component triggers the download directly.
|
||||
|
||||
> Please, check the next component since you can test it directly.
|
||||
Loading…
Add table
Add a link
Reference in a new issue