Skip to content

add input_size property to spin_button#426

Merged
lizidev merged 3 commits intothaw-ui:thaw/v0.5from
kandrelczyk:feat/sping_button_size
Aug 1, 2025
Merged

add input_size property to spin_button#426
lizidev merged 3 commits intothaw-ui:thaw/v0.5from
kandrelczyk:feat/sping_button_size

Conversation

@kandrelczyk
Copy link
Copy Markdown
Contributor

Hey,

I'm missing this property. Hope it's fine to add.

jerhat and others added 2 commits June 24, 2025 11:21
* grid: added min and max props

* switch from `MaybeProp`s to `Signal`s
size: Signal<SpinButtonSize>,
/// Input size width.
#[prop(optional, into)]
input_size: Signal<Option<i32>>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Change to u32 type. The specification requires:

MDN

This must be a valid non-negative integer greater than zero.

Copy link
Copy Markdown
Contributor Author

@kandrelczyk kandrelczyk Aug 1, 2025

Choose a reason for hiding this comment

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

For Input it's i32. Should I change it there as well?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, but changing the type of Input is a breaking change, so we can merge it into the thaw/v0.5 branch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'm already using 0.5-beta so I will just change this PR to merge into 0.5 branch.

@kandrelczyk kandrelczyk changed the base branch from main to thaw/v0.5 August 1, 2025 15:23
@lizidev
Copy link
Copy Markdown
Collaborator

lizidev commented Aug 1, 2025

Thanks!

@lizidev lizidev merged commit d16ac3a into thaw-ui:thaw/v0.5 Aug 1, 2025
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.

3 participants