Skip to content

Commit 96a175d

Browse files
feat: add InputLabelProps story in SelectArrayInput
1 parent 691ab60 commit 96a175d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/ra-ui-materialui/src/input/SelectArrayInput.stories.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,24 @@ export const DisabledChoice = () => (
181181
</Wrapper>
182182
);
183183

184+
export const InputLabelProps = () => (
185+
<Wrapper>
186+
<SelectArrayInput
187+
source="roles"
188+
choices={[
189+
{ id: 'admin', name: 'Admin' },
190+
{ id: 'u001', name: 'Editor' },
191+
{ id: 'u002', name: 'Moderator' },
192+
{ id: 'u003', name: 'Reviewer' },
193+
]}
194+
InputLabelProps={{
195+
shrink: true,
196+
required: true,
197+
}}
198+
/>
199+
</Wrapper>
200+
);
201+
184202
export const ReadOnly = () => (
185203
<AdminContext i18nProvider={i18nProvider}>
186204
<Create

0 commit comments

Comments
 (0)