New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mydefi/ui

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mydefi/ui

UI components originally created for the MyDeFi app.

  • 0.0.21
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

@mydefi/ui

UI components originally created for the MyDeFi app.

NPM JavaScript Style Guide

Overview

mydefiUI is a React Library used to build the user interface of the MyDeFi app. We decided to open-source it to let anyone benefit from it and potentially build applications that could be integrated in MyDeFi.

Install

npm install --save @mydefi/ui

Usage

import React, { Component } from 'react'

import { Main, Card } from '@mydefi/ui'

class Example extends Component {
  render () {
    return (
      <Main>
        <Card title="This is a test card" description="And more details about it."></Card>
      </Main>
    )
  }
}

Components

Main

Encapsulate your app in the Main component to ensure a correct display of all of our components.

import { Main } from '@mydefi/ui'

<Main>
  {/* Your app here */}
</Main>

Card

The Card component can be used as a container for some specific data.

import { Card } from '@mydefi/ui'

<Card title="Title of the card" description="This is the card description.">
  {/* Add content here */}
</Card>
Properties
  • title (optional): Will automatically display a formatted title for the card.
  • description (optional): Will automatically display a formatted description for the card.

The apparence of the title and description properties can be customised by using a <Text> component instead of a simple string.

SidePanel

The SidePanel is an animated panel that appears from the right side of the screen. At MyDeFi we use it to display more details about an app when a user clicks on an app card.

import { SidePanel } from '@mydefi/ui'

<SidePanel title="Title of the SidePanel" description="This is the SidePanel description.">
  {/* Add content here */}
</SidePanel>
Properties
  • title (optional): Will automatically display a formatted title for the SidePanel.
  • description (optional): Will automatically display a formatted description for the SidePanel.

The apparence of the title and description properties can be customised by using a <Text> component instead of a simple string.

License

MIT © Baptiste Greve

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc