resolvers
resolvers.{tsx,ts,jsx,js}
Maps a name and taxonomy with options to a React component.
resolvers.{tsx,ts,jsx,js}
import { Button } from "./Button";
// 1️⃣ Define your resolvers
const resolvers = [
{
name: "Button",
taxonomy: "form",
com: Button,
},
];
export default resolvers;
info
⚠️ Important: The names of the functions in the export default remain unchanged; only their internal implementation should be customized.
Resolver Specification
| Property | Type | Description |
|---|---|---|
name* | string | Used to identify the resolver. |
taxonomy* | any | Represents the classification or category associated with the resolver. |
com* | React.Component | Defines the React component rendered for this resolver. |
isFnCb | boolean | Set isFnCb to true The return value is passed as children. |
isClosing | boolean | JSX when a component or tag is closed. |
isWrapper | boolean | A component or tag itself does not generate any new content, but simply provides a wrapper around its children or other elements. |
You can customize this file according to your UI kit or custom components to fit your specific project needs.
By default, this file is preconfigured for Tamagui, but you can adapt it for any other UI library or design system.