Set default value for Builder component

What I am trying to do: Trying to prefill the Builder component.

What I did: Try the ->default on the Builder::make, but it doesn't seem to work.

My issue/the error: The Builder is not being prefilled.

This code does not work:
Builder::make('form')
                ->blocks([
                    Block::make('values')->schema([
                        TextInput::make('percent')
                            ->numeric()
                            ->required()
                            ->placeholder('20'),
                    ])
                ])
                ->default([
                    'type' => 'values',
                    'data' => [
                        'percent' => 1,
                    ],
                ])
                ->maxItems(1)
                ->blockNumbers(false)
        ];
Was this page helpful?