Skip to content

Commit

Permalink
refactor(docs): divider dx
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Nov 14, 2024
1 parent c037ff9 commit fc41992
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
20 changes: 20 additions & 0 deletions apps/docs/content/components/divider/usage.raw.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {Divider} from "@nextui-org/react";

export default function App() {
return (
<div className="max-w-md">
<div className="space-y-1">
<h4 className="text-medium font-medium">NextUI Components</h4>
<p className="text-small text-default-400">Beautiful, fast and modern React UI library.</p>
</div>
<Divider className="my-4" />
<div className="flex h-5 items-center space-x-4 text-small">
<div>Blog</div>
<Divider orientation="vertical" />
<div>Docs</div>
<Divider orientation="vertical" />
<div>Source</div>
</div>
</div>
);
}
21 changes: 1 addition & 20 deletions apps/docs/content/components/divider/usage.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
const App = `import {Divider} from "@nextui-org/react";
export default function App() {
return (
<div className="max-w-md">
<div className="space-y-1">
<h4 className="text-medium font-medium">NextUI Components</h4>
<p className="text-small text-default-400">Beautiful, fast and modern React UI library.</p>
</div>
<Divider className="my-4" />
<div className="flex h-5 items-center space-x-4 text-small">
<div>Blog</div>
<Divider orientation="vertical" />
<div>Docs</div>
<Divider orientation="vertical" />
<div>Source</div>
</div>
</div>
);
}`;
import App from "./usage.raw.jsx?raw";

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

0 comments on commit fc41992

Please sign in to comment.