0.1.15 • Published 2 years ago

shipui v0.1.15

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

Warning This library is still under rapid development 🛠

📦 Installation and Usage

yarn add shipui
# Or with npm
npm install shipui
// next.config.js
module.exports = {
  compiler: {
    emotion: true,
  },
}
// @/utils/colors.ts
import { createPalette } from 'shipui'

export const Colors = createPalette({ r: 166, g: 115, b: 255 })
// @/pages/_app.tsx
import { AppProps } from 'next/app'
import React from 'react'
import { ColorProvider, LoadingProgress, MetaData, MetaHead, useLoadingProgressProps } from 'shipui'

import { Colors } from '@/utils/colors'

// FIXME: Declare website's default metadata here
const meta: MetaData = {
  title: 'ShipUI',
  description: 'UI components to ship stuff',
  image: 'https://www.junho.io/assets/og-image.jpg',
  url: 'https://junho.io',
  canonical: 'https://junho.io',
  themeColor: Colors.primary,
}

const App: React.FC<AppProps> = ({ Component, pageProps }) => {
  const loadingProps = useLoadingProgressProps()

  return (
    <React.Fragment>
      <MetaHead {...meta} />
      <ColorProvider value={Colors}>
        <LoadingProgress {...loadingProps} />
        <Component {...pageProps} />
        <div id="portal" />
      </ColorProvider>
    </React.Fragment>
  )
}

export default App
0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.1-canary.5

2 years ago

0.1.1-canary.4

2 years ago

0.1.1-canary.3

2 years ago

0.1.1-canary.2

2 years ago

0.1.1-canary.1

2 years ago

0.1.1-canary.0

2 years ago