Skip to content

A set of React components for creating directory list views in nteract-based applications

License

Notifications You must be signed in to change notification settings

nteract/directory-listing

Repository files navigation

@nteract/directory-listing

This package contains components that can be used to create a listing of items within a directory. To see this package in action, you can view the source code for the nteract commuter application.

Installation

$ yarn add @nteract/directory-listing
$ npm install --save @nteract/directory-listing

Usage

The example below shows how we can use the components within this package to create a listing of the items in a directory.

import { Listing, Entry, Icon, Name, LastSaved } from "@nteract/directory-listing";

export function () => <Listing>
  <Entry>
    <Icon fileType="notebook" />
    <Name>
      <a href="#listing">GANS-for-days.ipynb</a>
    </Name>
    <LastSaved lastModified="2018-06-27T16:21:25.354Z" />
  </Entry>

  <Entry>
    <Icon fileType="directory" />
    <Name>
      <a href="#listing">home</a>
    </Name>
    <LastSaved lastModified="2018-03-27T16:21:25.354Z" />
  </Entry>

  <Entry>
    <Icon fileType="file" />
    <Name>
      <a href="#listing">component.js</a>
    </Name>
    <LastSaved lastModified={new Date("2018-05-27T16:21:25.354Z")} />
  </Entry>
  <Entry>
    <Icon fileType="file" color="gray" />
    <Name>
      <i style={{ color: "gray" }}>no-permission-file.md</i>
    </Name>
    <LastSaved lastModified={new Date("2018-05-27T16:21:25.354Z")} />
  </Entry>
</Listing>

An example of a directory listing created using nteract components.

Documentation

You can view the reference documentation for @nteract/directory-listing in the Markdown files within the src directory.

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board.

License

BSD-3-Clause

About

A set of React components for creating directory list views in nteract-based applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published