Skip to content

Commit c7cf541

Browse files
adding styleguide example and create panel theme
1 parent 90d7522 commit c7cf541

File tree

15 files changed

+3077
-33
lines changed

15 files changed

+3077
-33
lines changed

example/stories/font-awesome-4.7.0/css/font-awesome.min.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
132 KB
Binary file not shown.
Binary file not shown.

example/stories/font-awesome-4.7.0/fonts/fontawesome-webfont.svg

Lines changed: 2671 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
```jsx
2+
import React, {useState} from 'react';
3+
import ReactCustomSearchList from 'react-custom-search-list';
4+
import 'react-custom-search-list/style/react-custom-search-list.css';
5+
function App() {
6+
const [searchValue, setSearchValue] = useState('');
7+
return (
8+
<ReactCustomSearchList fullWidth value={searchValue} setValue={setSearchValue}>
9+
{/**Render your suggestions list here*/}
10+
<ul>
11+
<li>
12+
<button
13+
onClick={() => {
14+
console.log('onclick');
15+
}}>
16+
Option A
17+
</button>
18+
</li>
19+
<li>Option B</li>
20+
<li>Option C</li>
21+
</ul>
22+
</ReactCustomSearchList>
23+
);
24+
}
25+
<App />;
26+
```

example/stories/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pre > span.token.tag:nth-last-child(3),
2+
pre > span.token.punctuation:nth-last-child(2) {
3+
display: none;
4+
}
5+
main > footer {
6+
display: none !important;
7+
}

package-lock.json

Lines changed: 224 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)