@ridi/web-ui
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

@ridi/web-ui

Install

$ npm install @ridi/web-ui

Support TypeScript

import * as React from 'react';
import { Book } from '@ridi/web-ui';

interface BookCoverProps {
  bookId: string
  width: number
}

const BookCover: React.FC<BookCoverProps> = props => {
  const { bookId, width } = props;
  return (
    <>
      <Book.Thumbnail
        thumbnailWidth={width}
        thumbnailUrl={`https://misc.ridibooks.com/cover/${bookId}/xxlarge`}
      />
    </>
  )
}

/@ridi/web-ui/

    Package Sidebar

    Install

    npm i @ridi/web-ui

    Weekly Downloads

    654

    Version

    0.8.0

    License

    MIT

    Unpacked Size

    194 kB

    Total Files

    6

    Last publish

    Collaborators

    • hw.choi
    • simulacre7
    • ys.yoon
    • lowfront
    • mando212
    • khinenw
    • davin.ahn
    • ridicorp
    • m0ai
    • ridi-junhee