0.0.126 • Published 2 years ago

@fwoosh/link v0.0.126

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.0.118

2 years ago

0.0.126

2 years ago

0.0.125

2 years ago

0.0.120

2 years ago

0.0.124

2 years ago

0.0.123

2 years ago

0.0.122

2 years ago

0.0.121

2 years ago

0.0.117

2 years ago

0.0.84

2 years ago

0.0.116

2 years ago

0.0.85

2 years ago

0.0.115

2 years ago

0.0.86

2 years ago

0.0.114

2 years ago

0.0.87

2 years ago

0.0.88

2 years ago

0.0.89

2 years ago

0.0.113

2 years ago

0.0.112

2 years ago

0.0.111

2 years ago

0.0.82

2 years ago

0.0.110

2 years ago

0.0.83

2 years ago

0.0.106

2 years ago

0.0.95

2 years ago

0.0.105

2 years ago

0.0.96

2 years ago

0.0.104

2 years ago

0.0.97

2 years ago

0.0.103

2 years ago

0.0.98

2 years ago

0.0.99

2 years ago

0.0.109

2 years ago

0.0.108

2 years ago

0.0.107

2 years ago

0.0.90

2 years ago

0.0.102

2 years ago

0.0.91

2 years ago

0.0.101

2 years ago

0.0.92

2 years ago

0.0.100

2 years ago

0.0.93

2 years ago

0.0.94

2 years ago

0.0.81

2 years ago

0.0.80

2 years ago

0.0.79

2 years ago

0.0.78

2 years ago

0.0.77

2 years ago

0.0.76

2 years ago

0.0.75

2 years ago