5.4.4 • Published 8 months ago

material-ui-bootstrap v5.4.4

Weekly downloads
37
License
MIT
Repository
github
Last release
8 months ago

material-ui-bootstrap

DEMO HERE https://material-ui-bootstrap.xyz

npm version

If you prefer the Material UI api but also like Bootstrap's clean buttons and useful color variants then this package is here for you. It wraps material-ui's <Button> and <Card> and <Typography> components and adds a new component <Alert>. Inspired by https://react-bootstrap.github.io.

CHANGELOG.md

Install

# use with mui v5
npm i material-ui-bootstrap@5

# use with mui v4
npm i material-ui-bootstrap@4

Tabs

import { Tabs } from "material-ui-bootstrap"
import React, { useState } from "react"

export function TabsExample() {
  const [selected, setSelected] = useState(0)
  return (
    <Tabs
      selectedIndex={selected}
      onSelect={newIndex => setSelected(newIndex)}
      tabs={["Cat", "Dog", "Bird"]}
    >
      {selected === 0 ? <>Cat</> : null}
      {selected === 1 ? <>Dog</> : null}
      {selected === 2 ? <>Bird</> : null}
    </Tabs>
  )
}

Button

DEPRECATED MUI v5 provides bootstrap coloring, you can style the rest in your theme provider.

Drop this in place of the material-ui Button. You may use the following color props: primary, secondary, success, danger, warning, info, light, dark.

import React from "react"
import { Button } from "material-ui-bootstrap"

export default function App() {
  return (
    <Button color="success" variant="contained">
      Success
    </Button>
  )
}

Alert

DEPRECATED MUI v5 provides a nicer Alert component now.

import React from "react"
import { Alert } from "material-ui-bootstrap"

export default function App() {
  return (
    <Alert color="danger">
      <Alert.Heading>Heading</Alert.Heading>
      Alert danger
    </Alert>
  )
}

Typography

import React from "react"
import { Typography } from "material-ui-bootstrap"

export default function TypographyExample() {
  return <Typography color="success">Example</Typography>
}

Card

import React from "react"
import { Card, CardContent, CardHeader, CardTitle } from "material-ui-bootstrap"

export default function CardExample() {
  return (
    <Card color="success">
      <CardHeader>CardHeader</CardHeader>
      <CardContent>
        <CardTitle>Title</CardTitle>
        Example card content.
      </CardContent>
    </Card>
  )
}

Label

import React from "react"
import { Label } from "material-ui-bootstrap"

export default function LabelExample() {
  return <Label color="info">Example</Label>
}

Panel

import React from "react"
import { Panel, PanelBody, PanelHeader } from "material-ui-bootstrap"

export default function PanelExample() {
  return (
    <Panel color="info">
      <PanelHeader>Header</PanelHeader>
      <PanelBody>Body</PanelBody>
    </Panel>
  )
}
5.3.2

8 months ago

5.3.1

8 months ago

5.3.0

8 months ago

5.4.4

8 months ago

5.4.3

8 months ago

5.4.2

8 months ago

5.4.1

8 months ago

5.4.0

8 months ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.1

3 years ago

5.1.0

3 years ago

5.0.1

3 years ago

4.1.0

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.2.2

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago

0.2.1

4 years ago

0.1.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.0.4

4 years ago