0.0.3 • Published 9 months ago

@mini_apps/utilities v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Mini-apps utilities

A collection of mini apps utilities for devs. Started from this thread - https://warpcast.com/alvesjtiago.eth/0xc44cf7cf

Installation

npm install @mini_apps/utilities

Utilities

Description

Link wrapper for mini apps. Allows a child element to be either an <a> tag if there is no frame SDK context and an on click div if there is! Minimal with only React and the frame SDK as dependencies ✨

Props

  • href: The URL to link to

Usage

import { Link } from '@mini_apps/utilities'

function App() {
  return (
    <div>
      <Link href="https://www.google.com">Google</Link>
    </div>
  )
}

Description

FrameInit component to emit frame SDK ready event. Minimal with only React and the frame SDK as dependencies.

Usage

import { FrameInit } from '@mini_apps/utilities'

function App() {
  return <FrameInit />
}

Contributors

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago