11<template >
2- <component :is =" component" :class =" [styles.gallery, { [styles.modifiers.gutter]: gutter }]" >
2+ <component
3+ :is =" component"
4+ :class =" [styles.gallery, { [styles.modifiers.gutter]: gutter }]"
5+ :style =" {
6+ ...cssVarsFromBreakpointProps($props, 'minWidth', cssGridTemplateColumnsMin.name),
7+ ...cssVarsFromBreakpointProps($props, 'maxWidth', cssGridTemplateColumnsMax.name),
8+ }"
9+ >
310 <slot />
411 </component >
512</template >
613
714<script lang="ts" setup>
815import styles from ' @patternfly/react-styles/css/layouts/Gallery/gallery' ;
16+ import cssGridTemplateColumnsMin from ' @patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min' ;
17+ import cssGridTemplateColumnsMax from ' @patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_max' ;
18+
919import type { Component , HTMLAttributes } from ' vue' ;
20+ import { cssVarsFromBreakpointProps } from ' ../../breakpoints' ;
1021
1122defineOptions ({
1223 name: ' PfGallery' ,
@@ -15,6 +26,32 @@ defineOptions({
1526export interface Props extends /* @vue-ignore */ HTMLAttributes {
1627 component? : string | Component ;
1728 gutter? : boolean ;
29+
30+ /** Minimum width */
31+ minWidth? : string ;
32+ /** Minimum width at Sm breakpoint */
33+ minWidthSm? : string ;
34+ /** Minimum width at Md breakpoint */
35+ minWidthMd? : string ;
36+ /** Minimum width at Lg breakpoint */
37+ minWidthLg? : string ;
38+ /** Minimum width at Xl breakpoint */
39+ minWidthXl? : string ;
40+ /** Minimum width at Xl2 breakpoint */
41+ minWidth2xl? : string ;
42+
43+ /** Maximum width */
44+ maxWidth? : string ;
45+ /** Maximum width at Sm breakpoint */
46+ maxWidthSm? : string ;
47+ /** Maximum width at Md breakpoint */
48+ maxWidthMd? : string ;
49+ /** Maximum width at Lg breakpoint */
50+ maxWidthLg? : string ;
51+ /** Maximum width at Xl breakpoint */
52+ maxWidthXl? : string ;
53+ /** Maximum width at Xl2 breakpoint */
54+ maxWidth2xl? : string ;
1855}
1956
2057withDefaults (defineProps <Props >(), {
0 commit comments