chansen-lib-test
v1.0.1
Published
This project is a collection of components designed for the use with CHansenDesign web-templates, cms-template. It serves as a centralised single-truth repository from which the projects gets templates
Downloads
1
Readme
CHansenCode Component Library
This project is a collection of components designed for the use with CHansenDesign web-templates, cms-template. It serves as a centralised single-truth repository from which the projects gets templates
Usage
npm install chansen-lib
import { nameOfComponent } from "chansenlib";
Component List
Base components
| name | import | |
| ------------ | ------------------------------------- | --- |
| Form | <Form> <Input /> <Button /> </Form>
| - |
| Input | <Input />
| - |
| Textarea | <Textarea />
| - |
| Select | <Select> <Option /> </Select>
| - |
| Options | <Option />
| - |
| | | |
Graphical components
| name | import | |
| ------------- | ------------------------------ | ------------------------------ |
| Card | <Card />
| Img & Text |
| CodeBlock | <CodeBlock code={codeVar} />
| Syntax highlighted codeblock |
General components
| name | import | |
| ------------- | --------------------------------- | --- |
| Dropdown | <Dropdown>{children}</Dropdown>
| - |
| CodeBlock | <CodeBlock code={codeVar} />
| - |
Structural components
| | | |
| ----------- | ------------- | --- |
| Section | <Section />
| - |
Dependencies
- cow
- cow 2