generate_ntv_template_code
Generate HTML template code for NTV Angular components with custom variants, sizes, and properties to build consistent UI elements.
Instructions
Generates HTML template code for an NTV component with optional custom configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Component name (e.g., 'Button', 'Input') | |
| variant | No | Visual variant (e.g., 'primary', 'secondary' for Button) | |
| size | No | Component size (e.g., 'sm', 'md', 'lg') | |
| content | No | Content/text to display inside component | |
| additionalProps | No | Additional properties as key-value pairs (e.g., {disabled: true}) | |
| useConfigPattern | No | Use the config object pattern (recommended for multiple props). Default: true |
Input Schema (JSON Schema)
{
"properties": {
"additionalProps": {
"description": "Additional properties as key-value pairs (e.g., {disabled: true})",
"type": "object"
},
"component": {
"description": "Component name (e.g., 'Button', 'Input')",
"type": "string"
},
"content": {
"description": "Content/text to display inside component",
"type": "string"
},
"size": {
"description": "Component size (e.g., 'sm', 'md', 'lg')",
"type": "string"
},
"useConfigPattern": {
"description": "Use the config object pattern (recommended for multiple props). Default: true",
"type": "boolean"
},
"variant": {
"description": "Visual variant (e.g., 'primary', 'secondary' for Button)",
"type": "string"
}
},
"required": [
"component"
],
"type": "object"
}