File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/Shared/Components/InfoBlock Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ import { Button } from '../Button'
8
8
const InfoBlock = ( {
9
9
layout = 'row' ,
10
10
variant = 'information' ,
11
- size = ComponentSizeType . medium ,
11
+ size = ComponentSizeType . large ,
12
12
customIcon,
13
13
buttonProps,
14
14
heading,
15
15
description,
16
16
borderRadiusConfig,
17
17
borderConfig,
18
+ fullWidth = true ,
18
19
} : InfoBlockProps ) => {
19
- const baseContainerClass = `${ size === ComponentSizeType . large ? 'px-12' : 'px-8' } ${ VARIANT_TO_BG_MAP [ variant ] } ${ deriveBorderRadiusClassFromConfig ( borderRadiusConfig ) } ${ deriveBorderClassFromConfig ( borderConfig ) } py-8 br-4 bw-1`
20
+ const baseContainerClass = `${ size === ComponentSizeType . large ? 'px-12' : 'px-8' } ${ VARIANT_TO_BG_MAP [ variant ] } ${ deriveBorderRadiusClassFromConfig ( borderRadiusConfig ) } ${ deriveBorderClassFromConfig ( borderConfig ) } ${ fullWidth ? 'w-100' : '' } py-8 br-4 bw-1`
20
21
const Icon = customIcon ?? VARIANT_TO_ICON_MAP [ variant ]
21
22
22
23
const renderIcon = ( ) =>
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ export type InfoBlockProps = {
23
23
buttonProps ?: ButtonProps
24
24
borderConfig ?: BorderConfigType
25
25
borderRadiusConfig ?: BorderConfigType
26
+ /**
27
+ * @default true
28
+ */
29
+ fullWidth ?: boolean
26
30
} & (
27
31
| {
28
32
/**
You can’t perform that action at this time.
0 commit comments