Skip to content

Commit 5442bd4

Browse files
authored
Update Button.php
Add link variant to link button. Align link documentation.
1 parent 26d4855 commit 5442bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Button.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ final class Button extends Widget
7070
* ```php
7171
* Button::link('Button', '/path/to/page');
7272
* ```
73-
*/
73+
*/
7474
public static function link(
7575
string|Stringable $label = '',
7676
?string $url = null,
7777
array $constructorArguments = [],
7878
array $config = [],
7979
?string $theme = null,
8080
): self {
81-
return self::widget($constructorArguments, $config, $theme)->label($label)->type(ButtonType::LINK)->url($url);
81+
return self::widget($constructorArguments, $config, $theme)->label($label)->type(ButtonType::LINK)->variant(ButtonVariant::LINK)->url($url);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)