Skip to content

how to set the height of a textarea? #15754

Closed Answered by leandrocfe
eduardonwa asked this question in Help
Discussion options

You must be logged in to vote

You can use rows() for Textarea fields or you can inject Tailwind classes using extraInputAttributes() for any input, as shown in this example:

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eduardonwa
Comment options

Answer selected by leandrocfe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants