I am trying to create a reusable horizontal component, it works fine with horizontal cases, but when trying on vertical I am not getting the expected result.
style.css
.horizontal-rule {
height: 1px;
background: grey;
border: none;
flex-shrink: 0;
margin: 0;
}
.vertical {
width: 1px;
margin: 0 1rem;
height: 100%;
}
even though I am adding the .vertical class it's not reflecting, so I need to especially pass these inline styles to make working
style={{ height: "48px", border: "solid 1px" }}
How can I avoid this inline style and make it a reusable one which will work for vertical cases with height automatically between the content?