UNPKG

terra-props-table

Version:

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

39 lines (24 loc) 1.3 kB
# Terra Props Table React component to render a table view for the props metadata of another react component. ## Getting Started - Install with [npmjs](https://www.npmjs.com): - `npm install terra-props-table` <!-- AUTO-GENERATED-CONTENT:START Peer Dependencies --> ## Peer Dependencies This component requires the following peer dependencies be installed in your app for the component to properly function. | Peer Dependency | Version | |-|-| | react | ^16.8.5 | | react-dom | ^16.8.5 | <!-- AUTO-GENERATED-CONTENT:END --> ## Usage ```jsx import React from 'react'; import ComponentSrc from '!raw-loader!../src/Component.jsx'; <PropsTable id="props" src={ComponentSrc} /> ``` > Any prop that includes the string `@private` in its description will not be included in the PropsTable output. ## Component Features * [Cross-Browser Support](https://github.com/cerner/terra-ui/blob/main/src/terra-dev-site/contributing/ComponentStandards.e.contributing.md#cross-browser-support) * [Responsive Support](https://github.com/cerner/terra-ui/blob/main/src/terra-dev-site/contributing/ComponentStandards.e.contributing.md#responsive-support) * [Mobile Support](https://github.com/cerner/terra-ui/blob/main/src/terra-dev-site/contributing/ComponentStandards.e.contributing.md#mobile-support)