Skip to content

Commit

Permalink
feat(html): add gap prop to grid/stack layout
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpenkov committed Feb 26, 2025
1 parent e841457 commit d3c00b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/html/src/layout/layout.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const states = [];
const options = {};

export type KendoLayoutProps = {
gap?: string;
type?: null | 'stack' | 'flex' | 'grid';
orientation?: null | 'horizontal' | 'vertical';
alignItems?: null | 'start' | 'center' | 'end' | 'stretch';
Expand All @@ -27,18 +28,21 @@ export const Layout = (
React.HTMLAttributes<HTMLDivElement>
) => {
const {
gap,
type = defaultOptions.type,
orientation = defaultOptions.orientation,
alignItems = defaultOptions.alignItems,
justifyContent = defaultOptions.justifyContent,
justifyItems = defaultOptions.justifyItems,
wrap = defaultOptions.wrap,
style,
...other
} = props;

return (
<div
{...other}
style={{ gap: gap, ...style }}
className={classNames(
props.className,
{
Expand Down

0 comments on commit d3c00b6

Please sign in to comment.