npm.io
0.1.14 • Published 4 years ago

@pongo-ui/react-link

Licence
MIT
Version
0.1.14
Deps
4
Size
51 kB
Vulns
0
Weekly
0
Stars
4

The Link component allows you to create a standardized anchor elements

Use

  1. Install the @pongo-ui/react-link component.

Using NPM

npm install @pongo-ui/react-link

Using Yarn

yarn add @pongo-ui/react-link
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Link component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Link } from '@pongo-ui/react-link'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Link>Hello World</Link>
    <Provider>
  )
}

API

The Link API extends off of the FluentUI Link.