You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
Breacrumb accepts only BreadcrumbItem ans BreadcrumbSeparator as its children (or customized component with a magic static property), this could introduce difficulty integrating with routers or filters like:
Layout can be implemented with flex and gap like Space component already does. In this case we can allow any element as Breadcrumb's children by simply wrapping them inside span.ant-breadcrumb-link.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Breacrumb
accepts onlyBreadcrumbItem
ansBreadcrumbSeparator
as its children (or customized component with a magic static property), this could introduce difficulty integrating with routers or filters like:This JSX is more compliant to React's "declarative" philosophy, especially with react-router v6's relative routing, but
Breadcrumb
can warn about it.What does the proposed API look like?
I've inspected the implement and find that the restriction is about rendering separator's inside breadcrumb items:
Despite some complex css customizations, I'd prefer separators to be rendered independently:
Layout can be implemented with flex and gap like
Space
component already does. In this case we can allow any element asBreadcrumb
's children by simply wrapping them insidespan.ant-breadcrumb-link
.The text was updated successfully, but these errors were encountered: