@ohif/ui

@ohif/ui is a collection of components and utilities that power OHIF's zero-footprint DICOM viewer.

Read The Docs | Edit the docs

[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors) [![MIT License][license-image]][license-url] This set of "Medical Imaging Viewer" React components are maintained separately to: - Decouple presentation from business logic - Test and develop components in isolation - Provide well documented, reusable components - Aid rapid application development for context specific viewers ## Install > This component library is pre- v1.0. All realeases until a v1.0 have the > possibility of introducing breaking changes. Please depend on an "exact" > version in your projects to prevent issues caused by loose versioning. For full installation instructions, be sure to check out our [getting started](https://react.ohif.org/getting-started#installation) guide. ```bash // with npm npm i @ohif/ui --save-exact // with yarn yarn add @ohif/ui --exact ``` ## Usage ```jsx import React, { Component } from 'react'; import { LayoutButton } from '@ohif/ui'; class Example extends Component { constructor(props) { super(props); this.state = { selectedCell: { className: 'hover', col: 1, row: 1, }, }; } render() { return ( this.setState({ selectedCell: cell })} /> ); } } ``` ## Developing Locally _Restore dependencies after cloning:_ ```bash # Restore workspace dependencies (from repository root) yarn install # From project root yarn run dev:ui # OR from this project's directory yarn run dev ``` ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Erik Ziegler
Erik Ziegler

💻 🚧
Danny Brown
Danny Brown

💻 🚧
Gustavo André Lelis
Gustavo André Lelis

💻 🚧
Thiago Maltempi
Thiago Maltempi

💻
Esref Durna
Esref Durna

💻
Steve Pieper
Steve Pieper

💻
Biharck Araujo
Biharck Araujo

💻
Rodrigo Antinarelli
Rodrigo Antinarelli

💻
João Felipe de Medeiros Moreira
João Felipe de Medeiros Moreira

💻
James Gosbell
James Gosbell

💻
Evren Ozkan
Evren Ozkan

💻
Zach S.
Zach S.

💻
Mete Ugur Akdogan
Mete Ugur Akdogan

💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## License MIT © [OHIF](https://github.com/OHIF) [all-contributors-image]: https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square [npm-url]: https://npmjs.org/package/@ohif/ui [npm-downloads-image]: https://img.shields.io/npm/dm/@ohif/ui.svg?style=flat-square [npm-version-image]: https://img.shields.io/npm/v/@ohif/ui.svg?style=flat-square [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square [license-url]: LICENSE