open-index/open-npm huggingface dataset:
npm package: @material/react-tab-indicator
Description: Material Components React Tab Indicator
Latest version: 0.15.0

# React Tab Indicator

A React version of an [MDC Tab Indicator](https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-indicator).

## Installation

```
npm install @material/react-tab-indicator
```

## Usage

### Styles

with Sass:
```js
import '@material/react-tab-indicator/index.scss';
```

with CSS:
```js
import '@material/react-tab-indicator/dist/tab-indicator.css';
```

### Javascript Instantiation

#### With an Underline (default)

```js
import React from 'react';
import TabIndicator from '@material/react-tab-indicator';

class MyApp extends React.Component {
  state = {active: false};

  render() {
    return (
      <div>
        <TabIndicator active={this.state.active} />
      </div>
    );
  }
}
```


#### With Icon

If you want the underline instead of an icon, pass the icon element as a child
of the Tab Indicator component.

```js
import React from 'react';
import TabIndicator from '@material/react-tab-indicator';
import MaterialIcon from '@material/react-material-icon';

class MyApp extends React.Component {
  state = {active: false};

  render() {
    return (
      <div>
        <TabIndicator
          active={this.state.active}
          icon
        >
          <MaterialIcon icon='star' />
        </TabIndicator>
      </div>
    );
  }
}
```

## Props

Prop Name | Type | Description
--- | --- | ---
active | boolean | If true will activate the indicator.
className | string | Classes to appear on className attribute of root element.
fade | boolean | If enabled will use the fade animation for transitioning to other tabs.
icon | boolean | Indicates that the indicator is an icon instead of an underline.
previousIndicatorClientRect | ClientRect | The indicator's clientRect that was previously activated.
onTransitionEnd | function | transitionend event callback handler.

## Sass Mixins

Sass mixins may be available to customize various aspects of the components. Please refer to the
MDC Web repository for more information on what mixins are available, and how to use them.

[Advanced Sass Mixins](https://github.com/material-components/material-components-web/blob/master/packages/mdc-tab-indicator/README.md#sass-mixins)

## Usage with Icons

Please see our [Best Practices doc](../../docs/best-practices.md#importing-font-icons) when importing or using icon fonts.
npm package: @material/react-tab-scroller
Description: Material Components React Tab Scroller
Latest version: 0.15.0

# React Tab Scroller

A React version of an [MDC Tab Scroller](https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-scroller).

## Installation

```
npm install @material/react-tab-scroller
```

## Usage

### Styles

with Sass:
```js
import '@material/react-tab-scroller/index.scss';
```

with CSS:
```js
import '@material/react-tab-scroller/dist/tab-scroller.css';
```

### Javascript Instantiation

```js
import React from 'react';
import TabScroller from '@material/react-tab-scroller';

class MyApp extends React.Component {
  render() {
    return (
      <TabScroller>
        <div className='tab'>Tab 1</div>
        <div className='tab'>Tab 2</div>
        <div className='tab'>Tab 3</div>
      </TabScroller>
    );
  }
}
```

## Props

Prop Name | Type | Description
--- | --- | ---
alignStart | boolean | If true aligns the initial scroll position to the first tab.
alignEnd | boolean | If true aligns the initial scroll position to the last tab.
alignCenter | boolean | If true aligns the initial scroll position to the middle tab.
className | string | Classes to appear on root element.
onWheel | function | Callback triggered on wheel event.
onTouchStart | function | Callback triggered on touchstart event.
onPointerDown | function | Callback triggered on pointerdown event.
onMouseDown | function | Callback triggered on mousedown event.
onKeyDown | function | Callback triggered on keydown event.
onTransitionEnd | function | Callback triggered on transitionend event.
npm package: @materialbits/core-test
Description: React components built on top of Material UI.
Author: Materialbits Team
Latest version: 0.1.1

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).