Schema URL

Type: object

Properties

$schema string
Values: "https://www.schemastore.org/agripparc-1.3.json"
props string

Which prop declaration method to use

Values: "ts" "jsdoc" "prop-types" "none"
children boolean

Whether the component is meant to have children (FC) or not (VFC)

typescript boolean

Whether to use Typescript

flat boolean

Whether to create a new, dedicated dir for the component (false) or not (true)

styling string

Which styling solution to use

Values: "css" "scss" "jss" "mui" "react-native" "none"
stylingModule boolean

Relevant for css or scss styling. If true, generates a scoped module stylesheet

importReact boolean

Whether to import React

overwrite boolean

Whether to overwrite existing files, if any are found

postCommand string

A command to run after a component was successfully generated

baseDir string

Path to a base directory which components should be genenrated in or relative to

destination string

The path in which the component folder/files should be generated, relative to baseDir

allowOutsideBase boolean

If true, allows components to be generated outside the resolved baseDir

exportType string

Whether to use a named export or a default export for the component

Values: "named" "default"
declaration string

Whether to declare the component as a const with an arrow function or a function declaration

Values: "const" "function"
memo boolean

Whether to generate a memo() component. Overrides the declaration option

separateIndex boolean

Whether to use a dedicated index file (recommended)

reactNative

Whether to generate React Native components

debug boolean

Whether to log additional debug information