diff --git a/apps/docs/content/_components/rating.md b/apps/docs/content/_components/rating.md index 3f24932..e63ada9 100644 --- a/apps/docs/content/_components/rating.md +++ b/apps/docs/content/_components/rating.md @@ -16,15 +16,7 @@ If you need to support partial stars, you can show half-filled star icons by pas -::vue-only -<<<../../../preview/nuxt/pages/showcases/Rating/RatingValues.vue -:: -::react-only -<<<../../../preview/next/pages/showcases/Rating/RatingValues.tsx -:: -::qwik-only <<<../../../website/src/routes/showcases/Rating/RatingValues/index.tsx -:: @@ -34,33 +26,21 @@ If you need to support partial stars, you can show half-filled star icons by pas -::vue-only -<<<../../../preview/nuxt/pages/showcases/Rating/RatingSizes.vue -:: -::react-only -<<<../../../preview/next/pages/showcases/Rating/RatingSizes.tsx -:: -::qwik-only <<<../../../website/src/routes/showcases/Rating/RatingSizes/index.tsx -:: ### Colors -Rating by default uses a `warning-500` for filled and partially filled stars and `disabled-500` as an empty icon color. You can change these values in your [Tailwind configuration](https://tailwindcss.com/docs/configuration#theme) or override them for a single element using [`important modifier`](https://tailwindcss.com/docs/configuration#important-modifier). +Rating by default uses a `warning-500` for filled and partially filled stars and `disabled-500` as an empty icon color. + + -::vue-only -<<<../../../preview/nuxt/pages/showcases/Rating/RatingColors.vue -:: -::react-only -<<<../../../preview/next/pages/showcases/Rating/RatingColors.tsx -:: -::qwik-only <<<../../../website/src/routes/showcases/Rating/RatingColors/index.tsx -:: @@ -70,44 +50,29 @@ For a more minimal look, you can also present ratings a single star icon with a -::vue-only -<<<../../../preview/nuxt/pages/showcases/Rating/SingleStar.vue -:: -::react-only -<<<../../../preview/next/pages/showcases/Rating/SingleStar.tsx -:: -::qwik-only <<<../../../website/src/routes/showcases/Rating/SingleStar/index.tsx -:: + ## Playground - + #tab-2 ## Props -| Prop name | Type | Default value | Possible values | -| --------------- | -------------- | ------------- | ------------------------------------ | -| `size` | `SfRatingSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'` | -| `value` | `number` | `0` | | -| `max` | `number` | `5` | | -| `halfIncrement` | `boolean` | `false` | | - -#tab-3 - -::vue-only -<<<../../../../packages/sfui/frameworks/vue/components/SfRating/SfRating.vue -:: -::react-only -<<<../../../../packages/sfui/frameworks/react/components/SfRating/SfRating.tsx -:: - -:: +| Prop name | Type | Default value | Possible values | +| ---------------- | -------------- | ------------- | ------------------------------------ | +| `class?` | `string` | | | +| `value?` | `number` | `0` | | +| `max?` | `number` | `5` | | +| `size?` | `SfRatingSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'` | +| `halfIncrement?` | `boolean` | `false` | | +| `ariaLabel?` | `string` | | |