Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
terra-props-table
Advanced tools
React component to render a table view for the props metadata of another react component.
React component to render a table view for the props metadata of another react component.
npm install terra-props-table
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 |
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 - 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.
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 33 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.