Nevertheless! Party Metaphorically
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@ridi/web-ui

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`}
      />
    </>
  )
}

Keywords

none

Install

npm i @ridi/web-ui

DownloadsWeekly Downloads

101

Version

0.8.0

License

MIT

Unpacked Size

194 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar