how to set the height of a textarea? #15754
-
PackageForm builder Package Versionv3.3.0 How can we help you?would be awesome to set a height size for an input, textarea, etc. currently i haven't found a solution in the docs.
|
Beta Was this translation helpful? Give feedback.
Answered by
leandrocfe
Mar 4, 2025
Replies: 1 comment 1 reply
-
You can use TextInput::make('title')
->extraInputAttributes([
'class' => 'h-[50px]',
]),
Textarea::make('extract')
->rows(20), If you are using classes that are not being used by Filament, you need to create a custom theme. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
leandrocfe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
rows()
for Textarea fields or you can inject Tailwind classes usingextraInputAttributes()
for any input, as shown in this example:If you are using classes that are not being used by Filament, you need to create a custom theme.