react-trinkets
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

React Trinkets

npm version downloads license

A collection of React.js components to decorate your site with.

Installation

With Yarn:

yarn add react-trinkets

With npm:

npm install --save-dev react-trinkets

Usage

Each trinket has their own default properties. You can overwrite the defaults by passing props into the component.

Last Visited

This component welcomes users to your website and remembers their last visit. It displays a personalized message depending on how recently they visited. For example, it might say "Welcome back!" if they visited yesterday or "Hey there! It's been a while" if it's been a longer time.

Example

import { LastVisited } from "react-trinkets";

function App() {

  return (
    <div>
        <ReactTrinkets>
    <div>
  );
}

export default App;

Package Sidebar

Install

npm i react-trinkets

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

225 kB

Total Files

84

Last publish

Collaborators

  • ivobos