Material-ui: [Stepper] Breadcrumb like

Created on 10 Oct 2018  路  7Comments  路  Source: mui-org/material-ui

Upgrading from 3.1.1. to 3.2.0, we now get warnings when we use a Stepper with a custom connector like this:

import { ChevronRight } from "mdi-material-ui";

// ...

<Stepper className="breadcrumb" connector={<ChevronRight />}>
  {arr.map(item => item)}
</Stepper>

The warnings we receive are:

screen shot 2018-10-09 at 5 12 04 pm

We've tried multiple solutions here, none successful.

Stepper docs good first issue

Most helpful comment

Thanks @oliviertassinari your solution fixes this issue for me.

Per @mbrookes note, I think the Stepper works nicely as Breadcrumbs.

screenshot-localhost-3000-2018 10 15-15-36-16

Closing.

All 7 comments

How is the interface for ChevronRight defined? We are passing some state related props to the connector and if you pass them through to the dom you will get those warnings.

We should maybe add an interface definition to the docs.

@bluepeter This is smart, I never thought of using the stepper for building a breadcrumb component #8818. You have to do something like:

import { ChevronRight } from "mdi-material-ui";

const Connector = () => <ChevronRight />;

<Stepper className="breadcrumb" connector={<Connector />}>
  {arr.map(item => item)}
</Stepper>

Could we add it to the docs as a customization example, which would close #8818?

Thanks @oliviertassinari your solution fixes this issue for me.

Per @mbrookes note, I think the Stepper works nicely as Breadcrumbs.

screenshot-localhost-3000-2018 10 15-15-36-16

Closing.

I agree with @mbrookes, I think that we could add a demo about it.

I'd like to have a go at this issue 馃槃

We have introduced a new Breadcrumb component #14084.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanflorence picture ryanflorence  路  3Comments

ghost picture ghost  路  3Comments

mb-copart picture mb-copart  路  3Comments

ghost picture ghost  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments