Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add labels prop and label slot #2

Merged
merged 5 commits into from
Jul 22, 2024
Merged

feat: add labels prop and label slot #2

merged 5 commits into from
Jul 22, 2024

Conversation

theetrain
Copy link
Owner

@theetrain theetrain commented Jul 20, 2024

Relates to #1.

New features for Cartesian (Svelte 4):

  • New labels prop that generates a label per Cartesian iteration. Can be modified to display a short or long-form label.
  • New label named slot that allows complete customization of how labels are displayed and styled.
  • Props are opt-in for backwards-compatibility, but if there's demand it could be opt-in in a future major version.

Demo

image

- Update props table
- Add slots table
- Adjust JSDocs for `labels` prop
Appease svelte-check
@theetrain theetrain merged commit 87ab626 into main Jul 22, 2024
1 check passed
@theetrain theetrain deleted the feat/labels branch July 22, 2024 18:48
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