Skip to content

feat: add call() method to design system styles - #30

Merged
leoafarias merged 2 commits into
mainfrom
leoafarias/design-system-call
Jan 9, 2026
Merged

feat: add call() method to design system styles#30
leoafarias merged 2 commits into
mainfrom
leoafarias/design-system-call

Conversation

@leoafarias

Copy link
Copy Markdown
Member

Description

Add call() methods to four core style classes (RemixCheckboxStyle, RemixSliderStyle, RemixSwitchStyle, RemixTextFieldStyle) to enable direct widget instantiation. This allows styles to be used with method chaining followed by call() for widget creation, providing a consistent design system interface across all callable components.

Related Issues

This continues the design system callable pattern already established in RemixButtonStyle, RemixIconButtonStyle, and RemixSpinnerStyle.


Checklist

  • My PR includes unit or integration tests for all changed/updated/fixed behaviors.
  • I have updated or added relevant documentation (doc comments with ///).
  • I am prepared to follow up on review comments in a timely manner.

Breaking Change

  • No, this is not a breaking change.

Add call() methods to RemixCheckboxStyle, RemixSliderStyle, RemixSwitchStyle,
and RemixTextFieldStyle to enable direct widget instantiation from styles.
This provides a consistent design system interface where all callable styles
can be used with method chaining followed by call() for widget creation.
Includes comprehensive tests for all new call() methods.
@docs-page

docs-page Bot commented Jan 9, 2026

Copy link
Copy Markdown

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/remix~30

Documentation is deployed and generated using docs.page.

Update doc examples to demonstrate assigning styles to final variables
then calling them like functions, which better reflects design system
usage patterns.
@leoafarias
leoafarias merged commit f8994f4 into main Jan 9, 2026
2 checks passed
@leoafarias
leoafarias deleted the leoafarias/design-system-call branch January 9, 2026 18:47
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