mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			444 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			444 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { ComponentChildren } from "preact";
 | |
| import { CSSProperties } from "preact/compat";
 | |
| 
 | |
| interface ColumnProps {
 | |
|     md?: number;
 | |
|     children: ComponentChildren;
 | |
|     className?: string;
 | |
|     style?: CSSProperties;
 | |
| }
 | |
| 
 | |
| export default function Column({ md, children, className, style }: ColumnProps) {
 | |
|     return (
 | |
|         <div className={`col-md-${md ?? 6} ${className ?? ""}`} style={style}>
 | |
|             {children}
 | |
|         </div>
 | |
|     )
 | |
| } |