{# @description daisyUI's diff: an image or content comparison with a draggable resizer. Give an aria-label, or the figure has no name. Dragging the resizer needs a pointer; Tab to the comparison shows the first item and Tab again the second. See the mockup.browser entry for a text comparison. #} {# @prop item_1:text | description:"Content shown in diff-item-1, drawn first. Fill the item_1 slot for markup." #} {# @prop item_2:text | description:"Content shown in diff-item-2. Fill the item_2 slot for markup." #} {# @prop aria-label:text | description:"Accessible name of the comparison. No default: the component cannot invent one, so give it one or the figure is unnamed." #} {# @prop class:text | description:"Extra classes added to the diff, such as aspect-16/9 to keep the aspect ratio." #} {# @slot:item_1 A pair of trainers — The first item, shown in diff-item-1. #} {# @slot:item_2 The same trainers, blurred — The second item, shown in diff-item-2. #}
{{ item_1 }}
{{ item_2 }}