Skip to content

Commit

Permalink
Add API Docs (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio authored Oct 17, 2024
1 parent fe33310 commit 88fc474
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/View/Components/Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class Alert extends Component
{
public string $uuid;

/**
* @param ?string $title The title of the alert, displayed in bold.
* @param ?string $icon The icon displayed at the beginning of the alert.
* @param ?string $description A short description under the title.
* @param ?bool $shadow Whether to apply a shadow effect to the alert.
* @param ?bool $dismissible Whether the alert can be dismissed by the user.
* @slot mixed $actions Slots for actionable elements like buttons or links.
*/
public function __construct(
public ?string $title = null,
public ?string $icon = null,
Expand Down
7 changes: 7 additions & 0 deletions src/View/Components/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ class Avatar extends Component
{
public string $uuid;

/**
* @param ?string $image The URL of the avatar image.
* @param ?string $title The title text displayed beside the avatar.
* @slot ?string $title The title text displayed beside the avatar.
* @param ?string $subtitle The subtitle text displayed beside the avatar.
* @slot ?string $subtitle The subtitle text displayed beside the avatar.
*/
public function __construct(
public ?string $image = '',

Expand Down

0 comments on commit 88fc474

Please sign in to comment.