Create Aura (Lightning) Component
sf_create_aura_componentGenerates a complete Aura component scaffold including markup, controller, CSS, design, and metadata XML. Configure interfaces, attributes, and Apex controller to create legacy Lightning components.
Instructions
Generates an Aura (Lightning Component Framework) component scaffold. Returns the complete bundle file contents: .cmp markup, JavaScript controller, CSS stylesheet, design resource, and metadata XML. Specify interfaces the component implements (e.g. force:appHostable for App Builder), attributes with types and defaults, and an optional Apex controller. Use sf_create_lwc for new development — Aura is for legacy migration scenarios.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isExposed | No | Whether the component is exposed in App Builder | |
| attributes | No | Component attributes | |
| controller | No | Apex controller class name | |
| implements | No | Comma-separated interfaces, e.g. 'force:appHostable,flexipage:availableForAllPageTypes' | |
| accessLevel | No | Access level | public |
| description | No | Description | |
| componentName | Yes | Aura component name (PascalCase) |