benjaminpalko/.opencode/skills/daisyui/components/diff.md
Benjamin Palko f526f5c0aa
Some checks failed
Deploy / deploy (push) Failing after 39s
set up new workflow and migrate to .forgejo dir (#5)
Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #5
2026-08-11 20:55:29 -04:00

509 B

diff

Diff component shows a side-by-side comparison of two items

diff docs

Class names

  • component: diff
  • part: diff-item-1, diff-item-2, diff-resizer

Syntax

<figure class="diff">
	<div class="diff-item-1">{item1}</div>
	<div class="diff-item-2">{item2}</div>
	<div class="diff-resizer"></div>
</figure>

Rules

  • To maintain aspect ratio, add aspect-16/9 or other aspect ratio classes to <figure class="diff"> element