Version: ^0.3.0
Last Updated: Unknown
Use this template to generate new React components.
| Variable | Data Type | Info | Example |
|---|---|---|---|
name | string | Name of the component | HeroWithActions |
category | string | Category | marketing, ecommerce or application |
subcategory | string | Subcategory | authentication, banners, headers, etc. |
1---2basedir: src/components/<%= category %>/<%= subcategory %>/<%= name %>3---4import * as React from "react";5import { ISection } from "@interfaces";67export interface I<%= name %> extends ISection {}89export const <%= name %>: React.FC<I<%= name %>> = () => (10 <div>11 <p>Hello</p>12 </div>13);
1---2basedir: src/components/<%= category %>/<%= subcategory %>/<%= name %>3---4export { <%= name %> } from './<%= name %>';5export type { I<%= name %> } from './<%= name %>';