---
name: StudyBrowser
menu: General
route: components/studyBrowser
---

import { Playground, Props } from 'docz';
import { StudyBrowser } from '@ohif/ui';

# StudyBrowser

## Import

```javascript
import { StudyBrowser } from '@ohif/ui';
```

## Basic usage

<Playground>
  {() => {
    const studyWithSR = {
      studyInstanceUid: '1',
      date: '07-Sept-2010',
      description: 'CHEST/ABD/PELVIS W/CONTRAST',
      numInstances: 902,
      modalities: 'CT,SR',
      displaySets: [
        {
          displaySetInstanceUID: 'f69f6asdasd48c-223e-db7f-c4af-b8906641a66e',
          description: 'Multiple line image series description lorem sit',
          seriesNumber: 1,
          numInstances: 68,
          componentType: 'thumbnailTracked',
          viewportIdentificator: 'A',
          isTracked: true,
        },
        {
          displaySetInstanceUID: 'f69f648c-223e-db7f-c4asdasdaf-b8906641a66e',
          description: 'Multiple line image series description lorem sit',
          seriesNumber: 1,
          numInstances: 68,
          componentType: 'thumbnailTracked',
          viewportIdentificator: 'B',
        },
        {
          displaySetInstanceUID: 'f69f648c-223e-dasdasdb7f-c4af-b8906641a66e',
          description: 'Multiple line image series description lorem sit',
          seriesNumber: 1,
          numInstances: 68,
          componentType: 'thumbnailTracked',
        },
        {
          displaySetInstanceUID: 'f69f648c-223e-db7f-c4afas-b8906asd641a66e',
          description: 'Multiple line description lorem ipsum dolor sit amet',
          modality: 'SR',
          componentType: 'thumbnailNoImage',
          seriesDate: '07-Sept-2010',
        },
      ],
    };
    const studySimple = {
      studyInstanceUid: '2',
      date: '07-Sept-2010',
      description: 'CHEST/ABD/PELVIS W/CONTRAST',
      numInstances: 902,
      modalities: 'CT',
      displaySets: [
        {
          displaySetInstanceUID: 'f69f648c-223e-db7f-c4af-b8906641a66e',
          description: 'Multiple line image series description lorem sit',
          seriesNumber: 1,
          numInstances: 68,
          componentType: 'thumbnailTracked',
        },
      ],
    };
    const tabs = [
      {
        name: 'primary',
        label: 'Primary',
        studies: [studySimple],
      },
      {
        name: 'recent',
        label: 'Recent',
        studies: [studyWithSR, studySimple],
      },
      {
        name: 'all',
        label: 'All',
        studies: [studySimple, studyWithSR],
      },
    ];
    return (
      <div className="flex flex-1" style={{height: '400px'}}>
        <div className="overflow-hidden w-64">
          <StudyBrowser tabs={tabs} />
        </div>
      </div>
    );
  }}
</Playground>

## Properties

<Props of={StudyBrowser} />
