Skip to content

Commit

Permalink
Adds example with internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
Titou325 committed Jul 25, 2024
1 parent 9e2bce7 commit afc4680
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/examples/basic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,29 @@ export const WithTextLayer: Story = {
},
};

export const WithInternalLinks: Story = {
render: ({ fileURL }: { fileURL: string }) => (
<Root
fileURL={fileURL}
className="bg-gray-100 border rounded-md overflow-hidden relative h-[500px]"
loader={<div className="p-4">Loading...</div>}
>
<Viewport className="p-4 h-full">
<Pages>
<Page className="my-4">
<CanvasLayer />
<TextLayer />
<AnnotationLayer />
</Page>
</Pages>
</Viewport>
</Root>
),
args: {
fileURL: "brochure.pdf",
},
};

export const WithAnnotationLayer: Story = {
render: ({ fileURL }: { fileURL: string }) => (
<Root
Expand Down

0 comments on commit afc4680

Please sign in to comment.