Skip to content

Commit

Permalink
add story for docs navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
irfankhan10 committed Oct 8, 2024
1 parent 0d367f2 commit bb0ce8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stories/custom/docs-nav.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Meta, StoryObj } from "@storybook/react";
import { ComponentProps } from "react";
import {DocsNavBar } from "src";

export function DocsNavDemo() {
return <DocsNavBar activePath="/" />;
return <DocsNavBar activePath="/" linkComponent={(props: ComponentProps<'a'>) => <a {...props}></a>} />;
}

const meta: Meta<typeof DocsNavDemo> = {
Expand Down

0 comments on commit bb0ce8a

Please sign in to comment.