Skip to content

Make breakpoint type partial record #96990

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

Merged
merged 4 commits into from
Aug 4, 2025

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Aug 1, 2025

The Responsive<T> type is now a Partial<Record<Breakpoint, T>>. This change allows consumers to define responsive values for only the breakpoints they need, improving flexibility and aligning with the intended use of responsive props.

@JonasBa JonasBa requested a review from a team as a code owner August 1, 2025 18:53
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 1, 2025
cursor[bot]

This comment was marked as outdated.

@natemoo-re natemoo-re enabled auto-merge (squash) August 4, 2025 17:30
@natemoo-re natemoo-re merged commit 1309cd2 into master Aug 4, 2025
46 checks passed
@natemoo-re natemoo-re deleted the cursor/make-breakpoint-type-partial-record-411c branch August 4, 2025 17:41
andrewshie-sentry pushed a commit that referenced this pull request Aug 4, 2025
<!-- Describe your PR here. -->
The `Responsive<T>` type is now a `Partial<Record<Breakpoint, T>>`. This
change allows consumers to define responsive values for only the
breakpoints they need, improving flexibility and aligning with the
intended use of responsive props.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants