diff --git a/fern/products/docs/pages/component-library/default-components/cards.mdx b/fern/products/docs/pages/component-library/default-components/cards.mdx index ec6dc5a79..c37b19711 100644 --- a/fern/products/docs/pages/component-library/default-components/cards.mdx +++ b/fern/products/docs/pages/component-library/default-components/cards.mdx @@ -77,6 +77,56 @@ You can use individual cards or [use the `CardGroup` component](/docs/writing-co +## Adding images to cards + +Cards support displaying images alongside content. The image automatically resizes to fit the card dimensions, so you typically don't need to specify `imageWidth` or `imageHeight` unless you want to override the default behavior. + + + + + Display an image alongside your card content. The image automatically scales to fit the card. + + + +```jsx + + Display an image alongside your card content. The image automatically scales to fit the card. + +``` + + + + + + + Position the image at the top of the card for a banner-style layout. + + + +```jsx + + Position the image at the top of the card for a banner-style layout. + +``` + + + ## Properties @@ -100,3 +150,15 @@ You can use individual cards or [use the `CardGroup` component](/docs/writing-co Hex color value for the icon in light mode (e.g. `#FF0F00`) + + URL of the image to display in the card. When set, the card displays the image alongside the content. + + + Position of the image relative to the card content. Use `imagePosition` to control the layout. + + + Width of the image (e.g. `200px`, `50%`). Only use if you need to override the default sizing. The image automatically resizes to fit the card by default. + + + Height of the image (e.g. `150px`, `100%`). Only use if you need to override the default sizing. The image automatically resizes to fit the card by default. + diff --git a/fern/products/sdks/overview/java/changelog/2025-10-23.mdx b/fern/products/sdks/overview/java/changelog/2025-10-23.mdx index 080598c2f..b2110807a 100644 --- a/fern/products/sdks/overview/java/changelog/2025-10-23.mdx +++ b/fern/products/sdks/overview/java/changelog/2025-10-23.mdx @@ -1,6 +1,6 @@ ## 3.9.2 **`(fix):`** Fix nullable field serialization in PATCH requests with wrapped request bodies. Explicit null values -(Nullable.ofNull()) are now correctly serialized as {"field": null} instead of being omitted like +(Nullable.ofNull()) are now correctly serialized as `{"field": null}` instead of being omitted like Nullable.empty().