@preamp/core
VideoAmp's Component library
Last updated 2 days ago by rbantog .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @preamp/core 
SYNC missed versions from official npm registry.

PreAmp Core

PreAmp Core in VideoAmp's component library.

File structure

core/
  components/
    componentGroup/              #holds all related components
      singleComponent/           #single component
        examples/                #example use cases
        subComponents/           #child components used only by this component
        component.md             #documentation
        component.tsx            #component definition
        component.spec.tsx       #tests

Adding components

  • Component definition
    • include the description in a comment above the component definition
    • component should be a named export, not default
  • Props
    • named with this format [ComponentName]Props
    • include the descriptions in a comment above each prop
  • Examples
    • include enough examples to show off all use cases for this component
  • Tests
    • TBD
  • SubComponents
    • subComponents used only this component should live in /subComponents. If a child component is used in multiple places, then it should be pulled out as a stand alone component
  • Types
    • include only prop interfaces in component definition file
    • put all other types in core/types/ for reuse

Example Component.tsx file

import * as React from 'react';

interface ComponentProps {
    /** Description of first prop */
    propOne: string;
    /** Description of the second prop */
    propTwo: boolean
}

/**
 * This is a description of Component.
 */
export const Component: React.SFC<ComponentProps> = (
    props: ComponentProps
): React.ReactElement<any> => {
    ...
};

Note: React must be imported with * as. Otherwise this file will not be parsed correctly for documentation generation.

How to publish

TODO

Using in another project

import multiple components at once from @preamp/core

import { Button, Card, TextField } from '@preamp/core';

Current Tags

  • 1.0.0-alpha.63                                ...           latest (2 days ago)

230 Versions

  • 1.0.0-alpha.63                                ...           2 days ago
  • 1.0.0-alpha.62                                ...           9 days ago
  • 1.0.0-alpha.61                                ...           11 days ago
  • 1.0.0-alpha.60                                ...           15 days ago
  • 1.0.0-alpha.59                                ...           16 days ago
  • 1.0.0-alpha.58                                ...           23 days ago
  • 1.0.0-alpha.57                                ...           a month ago
  • 1.0.0-alpha.56                                ...           a month ago
  • 1.0.0-alpha.55                                ...           a month ago
  • 1.0.0-alpha.54                                ...           a month ago
  • 1.0.0-alpha.53                                ...           a month ago
  • 1.0.0-alpha.52                                ...           a month ago
  • 1.0.0-alpha.51                                ...           a month ago
  • 1.0.0-alpha.50                                ...           a month ago
  • 1.0.0-alpha.49                                ...           a month ago
  • 1.0.0-alpha.48                                ...           a month ago
  • 1.0.0-alpha.47                                ...           a month ago
  • 1.0.0-alpha.46                                ...           2 months ago
  • 1.0.0-alpha.45                                ...           2 months ago
  • 1.0.0-alpha.44                                ...           2 months ago
  • 1.0.0-alpha.43                                ...           2 months ago
  • 1.0.0-alpha.41                                ...           2 months ago
  • 1.0.0-alpha.40                                ...           2 months ago
  • 1.0.0-alpha.39                                ...           2 months ago
  • 1.0.0-alpha.38                                ...           2 months ago
  • 1.0.0-alpha.37                                ...           2 months ago
  • 1.0.0-alpha.36                                ...           2 months ago
  • 1.0.0-alpha.35                                ...           2 months ago
  • 1.0.0-alpha.34                                ...           2 months ago
  • 1.0.0-alpha.33                                ...           3 months ago
  • 1.0.0-alpha.32                                ...           3 months ago
  • 1.0.0-alpha.31                                ...           3 months ago
  • 1.0.0-alpha.30                                ...           3 months ago
  • 1.0.0-alpha.29                                ...           3 months ago
  • 1.0.0-alpha.28                                ...           3 months ago
  • 1.0.0-alpha.27                                ...           4 months ago
  • 1.0.0-alpha.26                                ...           4 months ago
  • 1.0.0-alpha.25                                ...           4 months ago
  • 1.0.0-alpha.24                                ...           4 months ago
  • 1.0.0-alpha.23                                ...           4 months ago
  • 1.0.0-alpha.22                                ...           4 months ago
  • 1.0.0-alpha.21                                ...           4 months ago
  • 1.0.0-alpha.20                                ...           4 months ago
  • 1.0.0-alpha.19                                ...           4 months ago
  • 1.0.0-alpha.18                                ...           4 months ago
  • 1.0.0-alpha.17                                ...           4 months ago
  • 1.0.0-alpha.16                                ...           4 months ago
  • 1.0.0-alpha.15                                ...           5 months ago
  • 1.0.0-alpha.14                                ...           5 months ago
  • 1.0.0-alpha.13                                ...           5 months ago
  • 1.0.0-alpha.12                                ...           5 months ago
  • 1.0.0-alpha.11                                ...           5 months ago
  • 1.0.0-alpha.10                                ...           5 months ago
  • 1.0.0-alpha.9                                ...           6 months ago
  • 1.0.0-alpha.8                                ...           6 months ago
  • 1.0.0-alpha.7                                ...           6 months ago
  • 1.0.0-alpha.6                                ...           6 months ago
  • 0.61.18                                ...           6 months ago
  • 1.0.0-alpha.5                                ...           6 months ago
  • 0.61.17                                ...           6 months ago
  • 1.0.0-alpha.4                                ...           6 months ago
  • 1.0.0-alpha.3                                ...           6 months ago
  • 0.61.16                                ...           6 months ago
  • 1.0.0-alpha.2                                ...           6 months ago
  • 0.61.15                                ...           6 months ago
  • 1.0.0-alpha.1                                ...           6 months ago
  • 0.61.14                                ...           6 months ago
  • 1.0.0-alpha.0                                ...           6 months ago
  • 0.61.13                                ...           6 months ago
  • 0.61.12                                ...           6 months ago
  • 0.61.11                                ...           6 months ago
  • 0.61.10                                ...           7 months ago
  • 0.61.9                                ...           7 months ago
  • 0.61.8                                ...           7 months ago
  • 0.61.7                                ...           7 months ago
  • 0.61.6                                ...           7 months ago
  • 0.61.5                                ...           7 months ago
  • 0.61.4                                ...           8 months ago
  • 0.61.3                                ...           8 months ago
  • 0.61.2                                ...           8 months ago
  • 0.61.1                                ...           8 months ago
  • 0.61.0                                ...           8 months ago
  • 0.60.8                                ...           8 months ago
  • 0.60.7                                ...           8 months ago
  • 0.60.6                                ...           8 months ago
  • 0.60.5                                ...           8 months ago
  • 0.60.4                                ...           8 months ago
  • 0.60.3                                ...           8 months ago
  • 0.60.2                                ...           9 months ago
  • 0.60.1                                ...           9 months ago
  • 0.60.0                                ...           9 months ago
  • 0.59.6                                ...           9 months ago
  • 0.59.5                                ...           9 months ago
  • 0.59.4                                ...           9 months ago
  • 0.59.3                                ...           9 months ago
  • 0.59.2                                ...           9 months ago
  • 0.59.1                                ...           9 months ago
  • 0.59.0                                ...           9 months ago
  • 0.58.2                                ...           9 months ago
  • 0.58.1                                ...           9 months ago
  • 0.58.0                                ...           9 months ago
  • 0.57.1                                ...           9 months ago
  • 0.57.0                                ...           9 months ago
  • 0.56.0                                ...           9 months ago
  • 0.55.4                                ...           9 months ago
  • 0.55.3                                ...           10 months ago
  • 0.55.2                                ...           10 months ago
  • 0.55.1                                ...           10 months ago
  • 0.55.0                                ...           10 months ago
  • 0.54.0                                ...           10 months ago
  • 0.53.0                                ...           10 months ago
  • 0.52.4                                ...           10 months ago
  • 0.52.3                                ...           10 months ago
  • 0.52.2                                ...           10 months ago
  • 0.52.1                                ...           10 months ago
  • 0.52.0                                ...           a year ago
  • 0.51.3                                ...           a year ago
  • 0.51.2                                ...           a year ago
  • 0.51.1                                ...           a year ago
  • 0.51.0                                ...           a year ago
  • 0.50.1                                ...           a year ago
  • 0.50.0                                ...           a year ago
  • 0.49.0                                ...           a year ago
  • 0.48.2                                ...           a year ago
  • 0.48.1                                ...           a year ago
  • 0.48.0                                ...           a year ago
  • 0.47.1                                ...           a year ago
  • 0.47.0                                ...           a year ago
  • 0.46.2                                ...           a year ago
  • 0.46.1                                ...           a year ago
  • 0.46.0                                ...           a year ago
  • 0.45.1                                ...           a year ago
  • 0.45.0                                ...           a year ago
  • 0.44.1                                ...           a year ago
  • 0.44.0                                ...           a year ago
  • 0.43.0                                ...           a year ago
  • 0.42.1                                ...           a year ago
  • 0.42.0                                ...           a year ago
  • 0.41.1                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.0                                ...           a year ago
  • 0.39.1                                ...           a year ago
  • 0.39.0                                ...           a year ago
  • 0.38.0                                ...           a year ago
  • 0.37.1                                ...           a year ago
  • 0.37.0                                ...           a year ago
  • 0.36.0                                ...           a year ago
  • 0.35.11                                ...           a year ago
  • 0.35.10                                ...           a year ago
  • 0.35.9                                ...           a year ago
  • 0.35.8                                ...           a year ago
  • 0.35.7                                ...           a year ago
  • 0.35.6                                ...           a year ago
  • 0.35.5                                ...           a year ago
  • 0.35.3                                ...           a year ago
  • 0.35.2                                ...           a year ago
  • 0.35.1                                ...           a year ago
  • 0.35.0                                ...           a year ago
  • 0.34.2                                ...           a year ago
  • 0.34.1                                ...           a year ago
  • 0.34.0                                ...           a year ago
  • 0.33.1                                ...           a year ago
  • 0.33.0                                ...           a year ago
  • 0.32.0                                ...           a year ago
  • 0.31.1                                ...           a year ago
  • 0.31.0                                ...           a year ago
  • 0.30.0                                ...           a year ago
  • 0.29.0                                ...           a year ago
  • 0.28.0                                ...           a year ago
  • 0.27.2                                ...           a year ago
  • 0.27.1                                ...           a year ago
  • 0.27.0                                ...           a year ago
  • 0.26.1                                ...           a year ago
  • 0.26.0                                ...           a year ago
  • 0.25.1                                ...           a year ago
  • 0.25.0                                ...           a year ago
  • 0.24.0                                ...           a year ago
  • 0.23.4                                ...           a year ago
  • 0.23.3                                ...           a year ago
  • 0.23.2                                ...           a year ago
  • 0.23.1                                ...           a year ago
  • 0.23.0                                ...           a year ago
  • 0.22.0                                ...           a year ago
  • 0.21.1                                ...           a year ago
  • 0.21.0                                ...           a year ago
  • 0.20.2                                ...           a year ago
  • 0.20.1                                ...           a year ago
  • 0.20.0                                ...           a year ago
  • 0.19.3                                ...           a year ago
  • 0.19.0                                ...           a year ago
  • 0.18.1                                ...           a year ago
  • 0.18.0                                ...           a year ago
  • 0.17.1                                ...           a year ago
  • 0.17.0                                ...           a year ago
  • 0.16.1                                ...           a year ago
  • 0.16.0                                ...           a year ago
  • 0.15.1                                ...           a year ago
  • 0.15.0                                ...           a year ago
  • 0.14.0                                ...           a year ago
  • 0.13.2                                ...           a year ago
  • 0.13.1                                ...           a year ago
  • 0.13.0                                ...           a year ago
  • 0.12.0                                ...           a year ago
  • 0.11.3                                ...           a year ago
  • 0.11.1                                ...           a year ago
  • 0.11.0                                ...           a year ago
  • 0.10.1                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.0.3-alpha.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |