@apto/aptotude

Apto UI for React

Usage no npm install needed!

<script type="module">
  import aptoAptotude from 'https://cdn.skypack.dev/@apto/aptotude';
</script>

README

Aptotude

A React UI library for Apto

npm version npm version

Quick links

Documentation

Getting started

Step 1: Install Aptotude

NPM
npm install --save @apto/aptotude
Yarn
yarn add @apto/aptotude

Creating a Component

  • Add a new directory in the components directory. Start the name with a capital letter.
  • The component file should be named 'AptoYourComponent.tsx'.
  • When you export your component do not use default just export the class
export class AptoFoo extends React.Component {}
  • Tests for your component should be a subdirectory named __tests__ in your component directory.
  • Stories should be in your component directory and named AptoYourComponent.stories.tsx.
  • Create an index.ts file in your component's directory and export your compnent from it.
export * from AptoFoo;
  • In the component/index.ts file export your component
... other exports
export * from AptoFoo