Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support :is prop so we can change html tags #234

gregg-cbs started this conversation in Ideas
Discussion options

Does this library support the ability to change html tags of components?

For example I am using the accordion with a ul li list but the accordion tags are always div's ... how do update the accordion html output to be a ul element instead of a div?

Vue has the <component :is="ul"> capability. I am thinking you would need to incorporate this into your components:

<component :is="$props.is || 'div'">

</component>
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.