Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
terra-props-table
Advanced tools
React component to render a table view for the props metadata of another react component.
npm install terra-props-table
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.
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 Name | Type | Is Required | Default Value | Description |
---|---|---|---|---|
children | node | required | Child node. Component to display next to the status indicator. | |
color | string | optional | The color of the status indicator. Accepts a CSS color value. |
Copyright 2017 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.
FAQs
React component to render a table view for the props metadata of another react component.
The npm package terra-props-table receives a total of 71 weekly downloads. As such, terra-props-table popularity was classified as not popular.
We found that terra-props-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.