Skip to content

Commit 58aa2af

Browse files
chore: adding more examples of playground code
1 parent e293302 commit 58aa2af

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

playground/package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playground/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"dependencies": {
1313
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
14+
"react-dom": "^18.3.1",
15+
"react-icons": "^5.4.0"
1516
},
1617
"devDependencies": {
1718
"@eslint/js": "^9.17.0",

playground/src/App.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import reactLogo from "./assets/react.svg";
22
import viteLogo from "/vite.svg";
3+
import { LuAArrowDown, LuArrowUp } from "react-icons/lu";
34
import { InputClickEdit } from "@nobrainers/react-click-edit";
45
import "./App.css";
56
import { useState } from "react";
@@ -23,7 +24,15 @@ function App() {
2324
<div className="card">
2425
<InputClickEdit onInputChange={handleChange} value={value} showIcons />
2526
<br />
26-
<InputClickEdit onInputChange={handleChange} value={value} justIcons />
27+
<InputClickEdit onInputChange={handleChange} value={value} iconsOnly />
28+
<br />
29+
<InputClickEdit
30+
onInputChange={handleChange}
31+
value={value}
32+
showIcons
33+
saveIcon={LuAArrowDown}
34+
editIcon={LuArrowUp}
35+
/>
2736
<p>
2837
Edit <code>src/App.tsx</code> and save to test HMR
2938
</p>

0 commit comments

Comments
 (0)