DappFactory
  • Introduction
  • How To Guides
    • ERC-20 Token
    • Tokensale
    • Vesting
    • Liquidity Lockers
    • Staking Pools
    • Farms
  • Custom Development
  • SDK
    • Getting started
    • ERC20 Token
      • Create ERC20 Token
    • NFT
      • Create NFT
    • IVCO / IDO / Presale
      • Create IVCO / IDO
    • Farms
      • Create Farm Button
      • Fetch Farms Data
      • Create Farm Function
    • Staking Pool
      • Create Staking Pool Button
    • Vesting Schedule
      • Create Vesting Schedule
    • Liquidity Locker
      • Create Liquidity Locker
    • Components
    • Customization
    • Demo
  • MISC
    • Dapp Factory and CNT
      • Figma Integration
    • FAQs
      • GitHub Integration
    • Referral Systems and how they work
      • Intercom Integration
  • Extras
    • Keyboard Shortcuts
Powered by GitBook
On this page
  • Button
  • Form
  1. SDK

Components

There are 2 types of components exported for each service:

  1. Button

  2. Form

Button

You can place the button anywhere inside the app and on clicking the button opens up a modal with the Form inside.

The button accepts an optional prop title, which accepts a string to display the custom modal Form title.

Example:

import React from "react";
import { CreateERC20Button } from "@cryption/dapp-factory-sdk";

const ERC20 = () => {
  return (
    <>
      <CreateERC20Button />
      <CreateERC20Button title="Create ERC20 token" />
    </>
  );
};
export default ERC20;

Result :

Form

You can import the Form component like this:

import { CreateERC20 } from "@cryption/dapp-factory-sdk";

const ERC20 = () => {
  return <CreateERC20 />;
};
export default ERC20;

Result :

PreviousCreate Liquidity LockerNextCustomization

Last updated 3 years ago

Without title prop
With title prop
ERC20 as a Service Form component