nutgaard / react-router-breadcrumbs

Breadcrumb component for react-router
Other
46 stars 11 forks source link

Could I use line style in breadcrumb component? #247

Closed thearabbit closed 7 years ago

thearabbit commented 7 years ago
const styles = {
..........
}
<Breadcrumbs
                            routes={this.props.routes}
                            params={this.props.params}
                            resolver={this.props.crumbResolver}
                            styles=..........
                        />

but don't work

nutgaard commented 7 years ago

Hi, and thanks for creating the issue.

On a general note it should probably be style and not styles. :)

However, there isnt any support for this in the component atm. What would you expect to happen if the component where to support this? The wrappercomponent getting some inlinestyles, or that it would by applied to all the crumb-elements?

thearabbit commented 7 years ago

thanks 👍

thearabbit commented 7 years ago

I tried, but don't work (base on Antd)

<Breadcrumbs
                                style={{margin: '12px 0'}}
                                routes={routes}
                                params={params}
                                resolver={crumbResolver}
                                className="ant-breadcrumb"
                            />