Giter Site home page Giter Site logo

benson-budiman-cb / onchainkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coinbase/onchainkit

0.0 0.0 0.0 22.77 MB

React components and TypeScript utilities for top-tier onchain apps.

Home Page: https://onchainkit.xyz

License: MIT License

JavaScript 0.52% TypeScript 85.14% CSS 0.38% MDX 13.96%

onchainkit's Introduction

OnchainKit logo vibes

OnchainKit

React components and TypeScript utilities for top-tier onchain apps.

Version MIT License Downloads per month Minified + gzip package size for @coinbase/onchainkit in KB


Documentation

For documentation and guides, visit onchainkit.xyz.

Features

OnchainKit offers four themes packed with React components and TypeScript utilities ready for action.

Overview

To integrate OnchainKit into your project, begin by installing the necessary packages.

# Yarn: Add library
yarn add @coinbase/onchainkit
# Yarn: Depending on the components or utilities you choose,
# you may end up utilizing any of those libraries.
yarn add [email protected] react@18 react-dom@18

# or

# Use NPM
npm install @coinbase/onchainkit
npm install [email protected] react@18 react-dom@18

# Use PNPM
pnpm add @coinbase/onchainkit
npm install [email protected] react@18 react-dom@18

Then, feel free to utilize any of the components or utilities, such as FrameMetadata.

import { FrameMetadata } from '@coinbase/onchainkit';

export default function HomePage() {
  return (
    ...
    <FrameMetadata
      buttons={[
        {
          label: 'Tell me the story',
        },
        {
          action: 'link',
          label: 'Link to Google',
          target: 'https://www.google.com'
        },
        {
          action: 'post_redirect',
          label: 'Redirect to cute pictures',
        },
      ]}
      image={{
       src: 'https://zizzamia.xyz/park-3.png',
       aspectRatio: '1:1'
      }}
      input={{
        text: 'Tell me a boat story',
      }}
      postUrl="https://zizzamia.xyz/api/frame"
    />
    ...
  );
}

Community โ˜๏ธ ๐ŸŒ โ˜๏ธ

Check out the following places for more OnchainKit-related content:

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

onchainkit's People

Contributors

alvaroraminelli avatar alvaroraminelli-cb avatar benson-budiman-cb avatar cnasc avatar dannydns avatar dneilroth avatar dongambas avatar eragon512 avatar federerkk avatar flickque avatar github-actions[bot] avatar hashwarlock avatar jarrensj avatar kyhyco avatar manan19 avatar maurelian avatar n3ps avatar neekolas avatar nicovalencia avatar robpolak avatar sneh1999 avatar syntag avatar taycaldwell avatar wespickett avatar yuripetusko avatar zizzamia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.