is Dynamic Tag or Component
Last updated: 2026-10-22
is Dynamic Tag or Component
The is attribute tells
| Group | Built-ins |
|---|---|
| Kind | Special Attribute |
| Scope | Template |
| Vue Version | 3.0+ |
| SSR Support | Yes |
📝 Syntax
<component :is="current"></component>
<component is="strong">bold text</component>
⚙️ Arguments
| props | A component name, definition or native tag string |
|---|
▶ Example
Edit the code below and see the live result:
Output:
The second line toggles between em and strong tags.
💡 Key Points
ℹ️ Note is only works with .
💡 Tip Great for dynamic form fields and rich-text nodes.
⚠️ Warning Native tag strings do not create components.
🏷️ Related Built-ins
💡 Related Cases
More case studies coming soon.
📚 Related Tutorials
❓ FAQ
Q Relation to <component>?
A is is its attribute — together they pick the target.
Q Can it render string tags?
A Yes — native names like span or h3 work.
Q Versus v-html?
A is stays within the template system; v-html injects raw markup.