Skip to content

feat(slider): add before and after labels - #22

Merged
matcane merged 7 commits into
mainfrom
feat/before-after-labels
Sep 27, 2026
Merged

matcane merged 7 commits into
mainfrom
feat/before-after-labels

Conversation

@matcane

@matcane matcane commented Sep 27, 2026

Copy link
Copy Markdown
Owner

What

The slider can show a short label on the before image and on the after image.
New props: beforeLabel and afterLabel. Skip them and nothing extra is shown.

Why

A comparison slider does not tell which image is before and which is after.

Test plan

  • no label props: looks like main
  • both props: before on the left, after on the right
  • only one prop: the other prop is absent
  • enabled={false}: labels stay hidden

@matcane matcane self-assigned this Sep 27, 2026
@matcane
matcane merged commit 6d7a8b0 into main Sep 27, 2026
1 check passed
@matcane
matcane deleted the feat/before-after-labels branch September 27, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant