@edifice.io/editor
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-develop-rc.13 • Public • Published

Edifice Editor

npm bundlephobia

Getting Started

Build

pnpm run build

Lint

pnpm run lint

If pnpm run lint shows issues, run this command to fix them.

pnpm run fix

Prettier

pnpm run format

Component Guideline

  • Always document basic guideline of Component with JSDoc format. Used by Storybook to generate documentation.
/**
 * Primary UI component for user interaction
 */

Interface description

  • Always document typescript types and interface with JSDoc syntax. Used by Storybook to generate documentation.
// Interface description (e.g: TreeViewProps.tsx)
export interface ButtonProps {
  /**
   * Is this the principal call to action on the page?
   */
  primary?: boolean;
  /**
   * What background color to use
   */
  backgroundColor?: string;
  /**
   * How large should the button be?
   */
  size?: "small" | "medium" | "large";
  /**
   * Button contents
   */
  label: string;
  /**
   * Optional click handler
   */
  onClick?: () => void;
}

Index file inside src folder

  • Entry point of this Editor Library.
  • Import your component inside index.ts file.
export * from './Button';

Dev

You can build your component using Storybook. See README

Package Sidebar

Install

npm i @edifice.io/editor

Weekly Downloads

3

Version

2.0.0-develop-rc.13

License

AGPL-3.0

Unpacked Size

142 kB

Total Files

99

Last publish

Collaborators

  • wsejenkins