Skip to content

hyperlane-xyz/hyperlane-widgets

This branch is 12 commits behind main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

56b4c60 · Mar 13, 2024

History

39 Commits
Mar 17, 2023
Feb 12, 2024
Feb 12, 2024
Feb 12, 2024
Mar 13, 2024
Jan 19, 2023
Feb 12, 2024
Jul 11, 2023
Jan 19, 2023
Feb 12, 2024
Jan 18, 2023
Feb 1, 2023
Mar 13, 2024
Jan 19, 2023
Jun 12, 2023
Mar 13, 2024
Feb 1, 2023
Feb 1, 2023
Mar 13, 2024

Repository files navigation

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.