Skip to content

Conversation

antoinefricker
Copy link
Contributor

@antoinefricker antoinefricker commented Jul 30, 2025

Resolves #10871

🐶 Problem

When using it is impossible to specify option for the included . In my case, I need to shrink the label.

🐕 Solution

The <SelectArrayInput> component accepts an options property that holds the overridable <Select> properties. We added a InputLabelProps property that similarly holds the overridable <InputLabel> properties.

🦮 How To Test

  1. Launch storybook
  2. Adopt a dog
  3. Open http://localhost:9010/?path=/story/ra-ui-materialui-input-selectarrayinput--input-label-props
  4. Use your eyes to confirm that the label is collapsed on the top of the input and that a little star appears next to the label.
    • If yes, the shrinked: true and required: true properties are applied and that's a leap of giant in the history of computer science.
    • If no, please reject this submission and my ego simultaneously.

🐩 Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests No need to test external library
  • The PR includes one or several stories
  • The documentation is up to date

@fzaninotto fzaninotto merged commit 585432c into next Jul 31, 2025
15 checks passed
@fzaninotto fzaninotto deleted the raoss-next-10871 branch July 31, 2025 06:34
@fzaninotto
Copy link
Member

Brilliant. Thanks!

@fzaninotto fzaninotto added this to the 5.11.0 milestone Jul 31, 2025
@fzaninotto fzaninotto changed the title feat: Support label configuration in <SelectArrayInput> Add <SelectArrayInput InputLabelProps> prop to support label configuration Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants