Skip to content

Commit

Permalink
Use unsafe sizes for Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
victortrinh2 committed Dec 5, 2024
1 parent cf52335 commit dc4f2ef
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ links:

A `IllustratedMessage` uses the following components.

<ComposedComponents components={["Image", "SVGImage", "Text"]}/>
<ComposedComponents components={["Image", "Text"]}/>

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Image/docs/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { Image } from "@hopper-ui/components";

export default function Example() {
return (
<Image src="/frog.jpg" alt="Frog" width="core_1280" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="300px" />
);
}
2 changes: 1 addition & 1 deletion packages/components/src/Image/docs/retina.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { Image } from "@hopper-ui/components";

export default function Example() {
return (
<Image srcSet="/frog.jpg 1x, /frog2x.jpg 2x" alt="Frog" width="core_1280" />
<Image srcSet="/frog.jpg 1x, /frog2x.jpg 2x" alt="Frog" UNSAFE_width="300px" />
);
}
4 changes: 2 additions & 2 deletions packages/components/src/Image/docs/shape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Image, Inline } from "@hopper-ui/components";
export default function Example() {
return (
<Inline>
<Image src="/frog.jpg" alt="Frog" width="core_1280" shape="rounded" />
<Image src="/frog.jpg" alt="Frog" width="core_1280" shape="circular" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="300px" shape="rounded" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="300px" shape="circular" />
</Inline>
);
}
6 changes: 3 additions & 3 deletions packages/components/src/Image/docs/size.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Image, Inline } from "@hopper-ui/components";
export default function Example() {
return (
<Inline>
<Image src="/frog.jpg" alt="Frog" width="core_640" height="auto" />
<Image src="/frog.jpg" alt="Frog" width="core_800" height="auto" />
<Image src="/frog.jpg" alt="Frog" width="core_1280"height="auto" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="200px" height="auto" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="300px" height="auto" />
<Image src="/frog.jpg" alt="Frog" UNSAFE_width="400px" height="auto" />
</Inline>
);
}
2 changes: 1 addition & 1 deletion packages/components/src/Image/docs/svgSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { NoResults } from "../assets/index.ts";

export default function Example() {
return (
<SvgImage stroke="neutral" src={NoResults} aria-label="No Results" height="core_1280" width="core_1280" />
<SvgImage stroke="neutral" src={NoResults} aria-label="No Results" UNSAFE_width="200px" UNSAFE_height="200px" />
);
}

0 comments on commit dc4f2ef

Please sign in to comment.