1.0.2 • Published 3 years ago

biotech-dev-components v1.0.2

Weekly downloads
-
License
SEE LICENSE IN <l...
Repository
github
Last release
3 years ago

BioTech.dev is a JavaScript UI library built for the BioTech sector.

Usage

⚙️ Components

All documentation can be found at https://www.biotech.dev/documentation

📦 Install

npm install biotech-dev-components
yarn add biotech-dev-components

🏗️ Example

import { ImageViewer } from 'biotech-dev-components';

const App = () => (
  <ImageViewer
    images={[{ url: image1, alt: 'Cell 1', caption: 'Cell 1' }]}
    magnifierEnabled
    toolbarConfiguration={{
      getToolbarContent(imageIndex: number) {
        return (
          <Space direction="vertical" style={{ width: '100%' }}>
            <Row style={{ fontWeight: 'bold' }}>ImageIndex: {imageIndex}</Row>
            <Row align="middle" justify="space-between" gutter={10}>
              Pass QC
              <Switch />
            </Row>
          </Space>
        );
      },
    }}
  />
);

Development

biotech-dev-components is written in TypeScript with importable definitions. To start developing locally, clone the repo and run yarn storybook