mirror of
https://github.com/hanzoai/cd-ui.git
synced 2026-10-30 20:42:45 +00:00
* feat: New components from Argo Rollotus UI in src/v2 directory Signed-off-by: Remington Breeze <[email protected]>
10 lines
439 B
TypeScript
10 lines
439 B
TypeScript
import * as React from 'react';
|
|
|
|
export const Flexy = (props: {noAlignment?: boolean; onClick?: (e: any) => void; className?: string; style?: React.CSSProperties; children: React.ReactNode}) => {
|
|
return (
|
|
<div className={props.className} onClick={props.onClick} style={{...(props.style as any), display: 'flex', alignItems: `${props.noAlignment ? 'inherit' : 'center'}`}}>
|
|
{props.children}
|
|
</div>
|
|
);
|
|
};
|