From 59e009f13f9c74089e00b2d586c875645d5629e6 Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Sun, 17 Mar 2024 03:52:19 +0330 Subject: [PATCH] update readme --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 7de228f..5b8ecbb 100644 --- a/README.md +++ b/README.md @@ -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