The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/typescript/widgets
J M Rossy 0cd65c5715
chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865)
4 days ago
..
.storybook chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865) 4 days ago
src chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865) 4 days ago
.eslintignore chore: Migrate widgets from separate repo to monorepo (#4139) 4 months ago
.eslintrc chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865) 4 days ago
.gitignore chore: Migrate widgets from separate repo to monorepo (#4139) 4 months ago
CHANGELOG.md Version Packages (#4830) 2 weeks ago
README.md chore: Migrate widgets from separate repo to monorepo (#4139) 4 months ago
package.json chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865) 4 days ago
postcss.config.cjs chore: Migrate widgets from separate repo to monorepo (#4139) 4 months ago
tailwind.config.cjs chore: Migrate various wallet hooks from the Warp UI to the Widgets lib (#4865) 4 days ago
tsconfig.json chore: Migrate widgets from separate repo to monorepo (#4139) 4 months ago

README.md

Hyperlane Widgets

Common react components for projects using Hyperlane.

Installation

# Install with npm
npm install @hyperlane-xyz/widgets

# Or install with yarn
yarn add @hyperlane-xyz/widgets

Peer dependencies

This package requires @hyperlane-xyz/sdk, react, and react-dom.

Contents

Components

  • ChainLogo: A logo icon for a given chain ID
  • MessageTimeline: A timeline showing stages of message delivery
  • WideChevron: A customizable version of Hyperlane's chevron logo

Hooks

  • useMessage: Fetch data about a message from the Hyperlane Explorer
  • useMessageStage: Fetch and compute message delivery stage and timings
  • useMessageTimeline: Fetch message data for use with MessageTimeline

Learn more

For more information, see the Hyperlane documentation.