Back to home

landpad/

react-component

Version: ^0.3.0

Last Updated: Unknown


Basic Lift Template

Use this template to generate new React components.

Required

VariableData TypeInfoExample
namestringName of the componentHeroWithActions
categorystringCategorymarketing, ecommerce or application
subcategorystringSubcategoryauthentication, banners, headers, etc.

Module files

1---
2basedir: src/components/<%= category %>/<%= subcategory %>/<%= name %>
3---
4import * as React from "react";
5import { ISection } from "@interfaces";
6
7export interface I<%= name %> extends ISection {}
8
9export const <%= name %>: React.FC<I<%= name %>> = () => (
10 <div>
11 <p>Hello</p>
12 </div>
13);

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-landpad

Sections