uichemy_get_template_code
One UiChemy library section as a standalone React + Tailwind component for the user's own React app. uichemy_get_page_code returns a whole page in one call. Pass text (slot token → copy, see uichemy_template_slots) and photos (what the pictures show) or images (slot token → url). The file depends only on React; colours are optional props that default to the style kit. It needs the stylesheet from uichemy_get_style_kit. The files are meant to be used as returned; their styling comes from the kit. Photos are searched on the server from the queries given (free-licence stock), so no separate image search is needed. Copy and image urls can be changed afterwards by editing the files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | A section kind — "hero", "pricing-table"… | |
| text | No | Slot token → copy, e.g. { "text_a4d1p2": "Fresh bread daily" }. | |
| images | No | Slot token → image url (overrides photos). | |
| photos | No | What the pictures should show, one query per picture in order — e.g. ["croissant on a plate", "bakery counter"]. | |
| videos | No | Slot token → video url. | |
| variant | Yes | A layout id — "layout-x6", or a number / websiteN for numbered folders. | |
| componentName | No | PascalCase name for the component, e.g. "HomeHero". |