|
@@ -9,6 +9,7 @@ type StackProps = {
|
|
|
align?: "start" | "center" | "end" | "baseline";
|
|
|
justifyContent?: "center" | "space-around" | "space-between";
|
|
|
className?: string | boolean;
|
|
|
+ style?: React.CSSProperties;
|
|
|
};
|
|
|
|
|
|
const RowStack = ({
|
|
@@ -17,17 +18,17 @@ const RowStack = ({
|
|
|
align,
|
|
|
justifyContent,
|
|
|
className,
|
|
|
+ style,
|
|
|
}: StackProps) => {
|
|
|
return (
|
|
|
<div
|
|
|
className={clsx("Stack Stack_horizontal", className)}
|
|
|
- style={
|
|
|
- {
|
|
|
- "--gap": gap,
|
|
|
- alignItems: align,
|
|
|
- justifyContent,
|
|
|
- } as React.CSSProperties
|
|
|
- }
|
|
|
+ style={{
|
|
|
+ "--gap": gap,
|
|
|
+ alignItems: align,
|
|
|
+ justifyContent,
|
|
|
+ ...style,
|
|
|
+ }}
|
|
|
>
|
|
|
{children}
|
|
|
</div>
|
|
@@ -44,13 +45,11 @@ const ColStack = ({
|
|
|
return (
|
|
|
<div
|
|
|
className={clsx("Stack Stack_vertical", className)}
|
|
|
- style={
|
|
|
- {
|
|
|
- "--gap": gap,
|
|
|
- justifyItems: align,
|
|
|
- justifyContent,
|
|
|
- } as React.CSSProperties
|
|
|
- }
|
|
|
+ style={{
|
|
|
+ "--gap": gap,
|
|
|
+ justifyItems: align,
|
|
|
+ justifyContent,
|
|
|
+ }}
|
|
|
>
|
|
|
{children}
|
|
|
</div>
|