0.0.1-alpha.8 • Published 3 years ago

@quiltt/components v0.0.1-alpha.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@quiltt/components

NPM JavaScript Style Guide

Install

npm install --save @quiltt/components

or

yarn add @quiltt/components

Usage

import * as React from 'react'

import '@quiltt/components/dist/index.css'

import { AccountList } from '@quiltt/components'

const Example = () => {
  //  .......................  //
  //  Data fetching step here  //
  //  .......................  //
  return <AccountList accounts={accounts} />
}

export default Example

Usage with @quiltt/client

import * as React from 'react'

import '@quiltt/components/dist/index.css'

import { gql, useQuery } from '@apollo/client'
import { QuilttProvider } from '@quiltt/client'
import { AccountList, PlaidLinkButton } from '@quiltt/components'

const GET_ACCOUNTS = gql`
  # insert accounts query here
`

const ConnectApp: React.FC = () => {
  const { loading, error, data } = useQuery(GET_ACCOUNTS)
  if (loading) return <p>Loading...</p>
  if (error) throw error
  const { accounts } = data.plaidItems[0]
  return (
    <div>
      <AccountList accounts={accounts} />
      <PlaidLinkButton block />
    </div>
  )
}

export const App: React.FC = () => {
  return (
    <QuilttProvider>
      <ConnectApp />
    </QuilttProvider>
  )
}

export default App

Exported Components

Atomic Components

  • Alert
  • Badge
  • Button
  • Card
  • Dropdown
  • Form
  • Heading
  • ListGroup
  • Spinner
  • ToggleSwitch

Fintech Components

  • Account
  • AccountList
  • Transaction
  • TransactionList

License

MIT © quiltt

0.0.2-2

3 years ago

0.0.2-1

3 years ago

0.0.2-0

3 years ago

0.0.1-alpha.8

3 years ago

0.0.1-alpha.9

3 years ago

0.0.1-alpha.6

3 years ago

0.0.1-alpha.7

3 years ago

0.0.1-alpha.4

3 years ago

0.0.1-alpha.5

3 years ago

0.0.1-alpha.3

3 years ago

0.0.1-alpha.2

3 years ago

0.0.1-alpha.1

3 years ago

0.0.1

3 years ago