Skip to content

Commit

Permalink
block(text-field-shadcn): fix label shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Sep 16, 2024
1 parent 350529f commit 9ce8c9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blocks/text-field-shadcn/TextFieldShadcn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export function TextFieldShadcn(props: TextFieldProps) {
placeholder="shadcn"
helperText="This is your public display name."
{...props}
slotProps={{
inputLabel: {
shrink: true,
},
}}
sx={{
"--radius": "0.5rem",
"--ring": "var(--mui-palette-text-primary)",
Expand Down

0 comments on commit 9ce8c9f

Please sign in to comment.