Mục lục tham khảo

Thành phần thương hiệu

Ink figure

greyscale illustration frame (multiply blend) in 9:16, 16:9, 3:4 or 1:1, with required alt text.

Nội dung tham khảo viết bằng tiếng Anh; mục “Vietnamese” có ví dụ tiếng Việt.

Xem trước

Ink drawing: a folded newspaper beside a cup of coffee
Illustration · English edition

Install

bash

npx shadcn add @eloquent/ink-figure

Usage

tsx

import { InkFigure } from "@/components/ui/ink-figure";

<InkFigure src="/ink/scene.svg" alt="Ink drawing: a folded newspaper beside a cup of coffee" ratio="16:9" caption="Illustration" />

States

Ink drawing in a 9:16 frame
9:16
Ink drawing in a 3:4 frame
3:4
Ink drawing in a 1:1 frame
1:1
Ink drawing in a 16:9 frame
16:9
Ink drawing on a paper ground, filling the frame
cover · paper
StateTreatment
Ratios9:16, 16:9, 3:4 and 1:1
fitcontain (default) or cover
groundtint-1 panel (default) or paper
ImageAlways greyscale, multiplied onto the ground

Keyboard

This component is not interactive. It is not a tab stop, so Tab skips it.

KeyAction
TabSkips it; not a tab stop

Vietnamese

Bản vẽ mực: một tờ báo gấp đôi bên tách cà phê
Minh hoạ · Ấn bản tiếng Việt

Ink adaptation

Brand item with no upstream. Any image is forced to greyscale with mix-blend-mode: multiply, so the paper of a scan merges with the frame; no border box, radius or overlay.