Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize tag for Col #314

Closed
juangl opened this issue Jan 30, 2017 · 5 comments · Fixed by #315 or #317
Closed

Customize tag for Col #314

juangl opened this issue Jan 30, 2017 · 5 comments · Fixed by #315 or #317

Comments

@juangl
Copy link

juangl commented Jan 30, 2017

Could I render a <Col> with an aside, nav or main tag instead a div?

@TheSharpieOne
Copy link
Member

You can use the tag prop, such as <Col tag="aside">

@juangl
Copy link
Author

juangl commented Jan 30, 2017

Is it a recently added prop? I'm using Reactrap 4.0.1 and I get:

Warning: Unknown prop `tag` on <div> tag. Remove this prop from the element. For details, see 

@TheSharpieOne
Copy link
Member

Sorry, apparently Col is not like the other components, it has div hard-coded as the element.
@eddywashere was there a reason for this or should it be updated to support the tag prop like the other components?

@eddywashere
Copy link
Member

Missed it when updating components. +1 to add. Also worth checking any other missing tag props.

@eddywashere
Copy link
Member

released in 4.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants