3.0.6 • Published 4 days ago

mui-tabs v3.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

MUI Tabs

NPM npm.io npm.io npm.io npm.io npm.io npm.io

This package was developed based on the Material UI Tabs component. See example.

Differences

  • emotion, etc. it is not used
  • There is no Material UI requirement

Features

Installation

yarn add mui-tabs@^3

Examples

Basic example

import * as React from 'react'
import { Tab, Tabs } from 'mui-tabs'

import 'mui-tabs/styles/main.css'
// or import 'mui-tabs/styles/scss/main.scss'

const App = () => {
  const [value, setValue] = React.useState(1)

  return (
    <Tabs value={value} onChange={(value) => setValue(value)}>
      <Tab value={1} label="Tab 1" />
      <Tab value={2} label="Tab 2" />
    </Tabs>
  )
}

Ripple effect example

You need to install the react-transition-group package.

yarn add react-transition-group

Example

import * as React from 'react'
import { Tab, Tabs } from 'mui-tabs'
import RippleButton from 'mui-tabs/RippleButton'

import 'mui-tabs/styles/main.css'
import 'mui-tabs/styles/ripple.css'
// or import 'mui-tabs/styles/all.css'
// or import 'mui-tabs/styles/scss/all.scss'

const App = () => {
  const [value, setValue] = React.useState(1)

  return (
    <Tabs
      value={value}
      variant="scrollable"
      scrollButtons={true}
      onChange={(value) => setValue(value)}
      TabComponent={RippleButton}
      ScrollButtonComponent={RippleButton}
      allowScrollButtonsMobile={true}
    >
      <Tab value={1} label="Tab 1" />
      <Tab value={2} label="Tab 2" />
      <Tab value={3} label="Tab 3" />
      <Tab value={4} label="Tab 4" />
      <Tab value={5} label="Tab 5" />
      <Tab value={6} label="Tab 6" />
      <Tab value={7} label="Tab 7" />
    </Tabs>
  )
}

License

This project is licensed under the terms of the MIT license.

3.0.6

4 days ago

3.0.4

22 days ago

3.0.5

20 days ago

3.0.3

24 days ago

3.0.2

25 days ago

2.1.1

1 month ago

3.0.1

30 days ago

3.0.0

1 month ago

2.1.0

1 month ago

2.0.9

1 month ago

2.0.8

3 months ago

2.0.7

3 months ago

2.0.6

3 months ago

2.0.5

3 months ago

2.0.4

3 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.0.9

6 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.3

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago