Skip to content

Commit

Permalink
refactor(docs): kbd dx (#4047)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong authored Nov 14, 2024
1 parent 1fe7eb2 commit 5aad6fe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
11 changes: 11 additions & 0 deletions apps/docs/content/components/kbd/keys.raw.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Kbd} from "@nextui-org/react";

export default function App() {
return (
<div className="flex gap-4">
<Kbd keys={["command"]}>K</Kbd>
<Kbd keys={["command", "shift"]}>N</Kbd>
<Kbd keys={["option", "command"]}>P</Kbd>
</div>
);
}
12 changes: 1 addition & 11 deletions apps/docs/content/components/kbd/keys.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
const App = `import {Kbd} from "@nextui-org/react";
export default function App() {
return (
<div className="flex gap-4">
<Kbd keys={["command"]}>K</Kbd>
<Kbd keys={["command", "shift"]}>N</Kbd>
<Kbd keys={["option", "command"]}>P</Kbd>
</div>
);
}`;
import App from "./keys.raw.jsx?raw";

const react = {
"/App.jsx": App,
Expand Down
5 changes: 5 additions & 0 deletions apps/docs/content/components/kbd/usage.raw.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Kbd} from "@nextui-org/react";

export default function App() {
return <Kbd keys={["command"]}>K</Kbd>;
}
8 changes: 1 addition & 7 deletions apps/docs/content/components/kbd/usage.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
const App = `import {Kbd} from "@nextui-org/react";
export default function App() {
return (
<Kbd keys={["command"]}>K</Kbd>
);
}`;
import App from "./usage.raw.jsx?raw";

const react = {
"/App.jsx": App,
Expand Down

0 comments on commit 5aad6fe

Please sign in to comment.