0.0.126 • Published 9 months ago

@fwoosh/link v0.0.126

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@fwoosh/link

A component to help linking between pages in your fwoosh website.

Sometimes you want to link to another page in your storybook. You can do this by using the following syntax:

<Link to="Title/Path">Go to path</Link>

Installation

To install the package.

npm i --save-dev @fwoosh/link
# or
yarn add -D @fwoosh/link

Usage

You can use a Link in javscript or typescript

import { Link } from "@fwoosh/link";

export const Example = () => {
  return <Link to="Welcome">Go to welcome page</Link>;
};

Or in MDX:

import { Link } from "@fwoosh/link";

<Link to="Welcome">Go to welcome page</Link>

Examples

MDX page

Given the following MDX file:

---
title: Getting Started/Welcome
---

You can link to it from another page:

<Link to="Getting Started/Welcome">Go to path</Link>

Story page

Given the following story file:

export const meta: StoryMeta = {
  title: "Components/Button",
};

You can link to it from another page:

<Link to="Components/Button">Go to path</Link>

NOTE: In storybook mode this will link to the first story, and in docs mode will link to the story's generated docs page.

Specific Story

Given the following story file:

export const meta: StoryMeta = {
  title: "Components/Button",
};

export const Basic = () => <div />;

You can link to it from another page:

<Link to="Components/Button/Basic">Go to path</Link>
0.0.119

1 year ago

0.0.118

1 year ago

0.0.126

1 year ago

0.0.125

1 year ago

0.0.120

1 year ago

0.0.124

1 year ago

0.0.123

1 year ago

0.0.122

1 year ago

0.0.121

1 year ago

0.0.117

1 year ago

0.0.84

1 year ago

0.0.116

1 year ago

0.0.85

1 year ago

0.0.115

1 year ago

0.0.86

1 year ago

0.0.114

1 year ago

0.0.87

1 year ago

0.0.88

1 year ago

0.0.89

1 year ago

0.0.113

1 year ago

0.0.112

1 year ago

0.0.111

1 year ago

0.0.82

1 year ago

0.0.110

1 year ago

0.0.83

1 year ago

0.0.106

1 year ago

0.0.95

1 year ago

0.0.105

1 year ago

0.0.96

1 year ago

0.0.104

1 year ago

0.0.97

1 year ago

0.0.103

1 year ago

0.0.98

1 year ago

0.0.99

1 year ago

0.0.109

1 year ago

0.0.108

1 year ago

0.0.107

1 year ago

0.0.90

1 year ago

0.0.102

1 year ago

0.0.91

1 year ago

0.0.101

1 year ago

0.0.92

1 year ago

0.0.100

1 year ago

0.0.93

1 year ago

0.0.94

1 year ago

0.0.81

1 year ago

0.0.80

1 year ago

0.0.79

1 year ago

0.0.78

1 year ago

0.0.77

1 year ago

0.0.76

1 year ago

0.0.75

1 year ago