2.50.0 • Published 4 years ago

terra-props-table v2.50.0

Weekly downloads
118
License
Apache-2.0
Repository
github
Last release
4 years ago

Terra Props Table

NPM version Build Status

React component to render a table view for the props metadata of another react component.

Getting Started

  • Install from npmjs: npm install terra-props-table

Peer Dependencies

This component requires the following peer dependencies be installed in your app for the component to properly function.

Peer DependencyVersion
react^16.8.5
react-dom^16.8.5

CLI

Props table is also a command utility used to generate markdown tables. The CLI accepts multiple files as input and has a single output directory.

Usage

props-table src/Status.jsx --out-dir ./docs
const propTypes = {
  /**
   * Child node. Component to display next to the status indicator.
   */
  children: PropTypes.node.isRequired,
  /**
   * The color of the status indicator. Accepts a CSS color value.
   */
  color: PropTypes.string,
};

const Status = ({ color, children }) => {
  return (
    <div style={{ borderColor: color }} >
      {children}
    </div>
  );
};

Status.propTypes = propTypes;

The status react component (above) will generate the markdown table (below).

Prop NameTypeIs RequiredDefault ValueDescription
childrennoderequiredChild node. Component to display next to the status indicator.
colorstringoptionalThe color of the status indicator. Accepts a CSS color value.

LICENSE

Copyright 2017 - 2019 Cerner Innovation, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

2.50.0

4 years ago

2.49.0

4 years ago

2.48.0

4 years ago

2.47.0

4 years ago

2.46.0

4 years ago

2.45.0

4 years ago

2.44.0

4 years ago

2.43.0

4 years ago

2.42.0

5 years ago

2.41.0

5 years ago

2.40.0

5 years ago

2.39.0

5 years ago

2.38.0

5 years ago

2.37.0

5 years ago

2.36.0

5 years ago

2.35.0

5 years ago

2.34.0

5 years ago

2.33.0

5 years ago

2.32.0

5 years ago

2.31.0

5 years ago

2.30.0

5 years ago

2.29.0

5 years ago

2.28.0

5 years ago

2.27.0

5 years ago

2.26.0

5 years ago

2.25.0

5 years ago

2.24.0

5 years ago

2.23.0

5 years ago

2.22.0

5 years ago

2.21.0

6 years ago

2.20.0

6 years ago

2.19.0

6 years ago

2.18.1

6 years ago

2.18.0

6 years ago

2.17.0

6 years ago

2.16.0

6 years ago

2.15.0

6 years ago

2.14.0

6 years ago

2.13.0

6 years ago

2.12.0

6 years ago

2.11.0

6 years ago

2.10.0

6 years ago

2.9.0

6 years ago

2.8.0

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.12.0

6 years ago

1.11.0

6 years ago

1.10.1

7 years ago

1.10.0

7 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.10.0

7 years ago

0.9.0

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago