@hbsis.uikit/react
Version:
Biblioteca ReactJS
28 lines (22 loc) • 526 B
JavaScript
import React from 'react'
import css from 'classnames'
import styled from 'styled-components'
const ColStyled = styled.div`
display: flex;
align-items: center;
padding-left: 10px;
width:${p=>p.width};
${p=>{
if(p.bordered)
return 'border-right: 1px dashed #c5d0e1;'
}}
&:last-child{
border-right: none;
}
`
const Col = ({ children, width, bordered = false }) => (
<ColStyled bordered={bordered} width={width} >
{children}
</ColStyled>
)
export default Col