Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Mar 17, 2024
1 parent 1233104 commit 59e009f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,38 @@ $infolist->schema([
]);
```

## Themes

You can choose the theme like this:

```php
use Mokhosh\FilamentRating\RatingTheme;

$form->schema([
Rating::make()->theme(RatingTheme::Simple),
]);
```

## Maximum Stars

You can change the number of total stars like this:

```php
$form->schema([
Rating::make()->stars(10),
]);
```

## Allowing Zero Stars

If you want to allow zero stars to be chosen, you can do so like this:

```php
$form->schema([
Rating::make()->allowZero(),
]);
```

## Testing

```bash
Expand Down

0 comments on commit 59e009f

Please sign in to comment.