Added width option
This commit is contained in:
parent
1a100a4222
commit
73b908b02d
1 changed files with 2 additions and 1 deletions
|
|
@ -6,12 +6,13 @@ interface Props {
|
|||
content?: 'top' | 'center' | 'bottom' | 'split' | 'spaced'
|
||||
gap?: number
|
||||
padding?: string
|
||||
width?: string
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<section class={`column-${props.content || 'center'}`} style={`gap: ${props.gap}rem; padding: ${props.padding || 0}`}>
|
||||
<section class={`column-${props.content || 'center'}`} style={`gap: ${props.gap}rem; padding: ${props.padding || 0}; width: ${props.width || 'auto'}`}>
|
||||
{props.children}
|
||||
</section>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue