Skip to content

Conversation

@webJose
Copy link
Contributor

@webJose webJose commented Sep 2, 2025

No description provided.

@webJose webJose requested a review from Copilot September 2, 2025 19:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the use of clsx library functionality for the ActiveState.class property by expanding the accepted type from string to ClassValue. This allows developers to pass objects, arrays, and other complex class value types that are commonly used with clsx.

  • Updated ActiveState.class type definition to accept ClassValue instead of just string
  • Modified the class binding logic to properly handle the expanded ClassValue type
  • Added documentation explaining the clsx compatibility

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/lib/types.ts Updates type definition and documentation for ActiveState.class to support ClassValue
src/lib/Link/Link.svelte Modifies class binding logic to work with the new ClassValue type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@webJose webJose merged commit 8bf1595 into main Sep 2, 2025
@webJose webJose deleted the JP/Link branch September 2, 2025 19:07
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.

2 participants