@ridi/web-ui
v0.8.0
Published
RIDI Web UI
Downloads
1,734
Keywords
Readme
@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`}
/>
</>
)
}