get_component
Retrieve the full schema for a specified petal_components component, including attrs, slots, defaults, allowed values, and a HEEx usage example to validate Phoenix LiveView markup.
Instructions
Get the full schema for a single petal_components component — attrs, slots, defaults, allowed values, and a HEEx usage example. Call this any time you're about to write a Phoenix LiveView component reference like <.pc_button> or <.input>, to ensure the attrs and slots match the real library.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component function name (e.g. 'button', 'modal', 'input'). Get the full list via list_components. |