This commit is contained in:
Jon McClure 2022-08-24 21:24:13 +01:00
parent 5b9a1d6313
commit 750af07813

View file

@ -26,7 +26,7 @@ You can also add the padding conditionally by using the `containerIsFluid` prop,
export let width = 'fluid';
</script>
<Block width="fluid">
<Block width="{width}">
<img src="{src}" alt="..." width="100%" />
<PaddingReset containerIsFluid="{width === 'fluid'}">
<p>A caption for the image that will be padded when Block is fluid.</p>