Reputation: 325
I am using below react component https://www.npmjs.com/package/react-sticky-table
Is there a way to add a border to this component?
const Row = require("react-sticky-table").Row;
<Row style={{ border: 3, bordercolor: "black" }}>
is invalid as far as I tried.
Upvotes: 2
Views: 12153
Reputation: 368
use borderColor not bordercolor, it should be in camel case and set the borderWidth as well
better method is
<Row style={{border: "3px solid rgb(0, 0, 0)"}}>
Upvotes: 3
Reputation: 3
The style options you pass in should be in CamelCase, ie. borderColor. You should also probably pass in borderStyle: 'solid' into the style argument.
Upvotes: 0