File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/components/content/ItemBase Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,10 @@ export interface CubeItemBaseProps extends BaseProps, ContainerStyleProps {
137137 * and makes the component disabled.
138138 */
139139 isLoading ?: boolean ;
140+ /**
141+ * When true, applies card styling with increased border radius.
142+ */
143+ isCard ?: boolean ;
140144 /**
141145 * @private
142146 * Default tooltip placement for the item.
@@ -214,7 +218,10 @@ const ItemBaseElement = tasty({
214218 position : 'relative' ,
215219 padding : 0 ,
216220 margin : 0 ,
217- radius : true ,
221+ radius : {
222+ '' : true ,
223+ card : '1cr' ,
224+ } ,
218225 height : {
219226 '' : 'min $size' ,
220227 '[data-size="inline"]' : 'initial' ,
@@ -658,6 +665,7 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
658665 style,
659666 loadingSlot = 'auto' ,
660667 isLoading = false ,
668+ isCard = false ,
661669 actions,
662670 defaultTooltipPlacement = 'top' ,
663671 ...rest
@@ -750,6 +758,7 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
750758 disabled : finalIsDisabled ,
751759 selected : isSelected === true ,
752760 loading : isLoading ,
761+ card : isCard === true ,
753762 ...mods ,
754763 } ;
755764 } , [
@@ -762,6 +771,7 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
762771 hasCheckbox ,
763772 isSelected ,
764773 isLoading ,
774+ isCard ,
765775 actions ,
766776 mods ,
767777 ] ) ;
You can’t perform that action at this time.
0 commit comments