remix-surfacing-links
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

remix-surfacing-links

This library reduces boilerplate for surfacing links in remix.run projects.

Installation

npm install remix-surfacing-links

Usage in atom component

import surfaceLinks from "remix-surfacing-links";

export const links = surfaceLinks({
  rel: "stylesheet",
  href: require("./styles.css"),
});

Usage in page or intermediate component

You can import children links this way:

import surfaceLinks from "remix-surfacing-links";

export const links = surfaceLinks(
  require("~/components/Button"),
  require("~/components/Toggle"),
  require("~/components/Modal"),
  {
    rel: "stylesheet",
    href: require("~/styles/homepage.css"),
  }
);

Package Sidebar

Install

npm i remix-surfacing-links

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.06 kB

Total Files

9

Last publish

Collaborators

  • chloridrik