Components
- Accordion
- Alert
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Carousel
- Checkbox
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Data Table
- Date Picker
- Description List
- Dropdown Button
- Empty
- Form
- Group Box
- Hover Card
- Icon
- Image
- Input
- Input Group
- Kbd
- Label
- Link
- List
- Marker
- Menu
- Message
- Notification
- Number Input
- Pagination
- Popover
- Progress
- Progress Circle
- Radio
- Rating
- Resizable
- Scrollable
- Select
- Separator
- Sheet
- Shimmer
- Sidebar
- Skeleton
- Slider
- Spinner
- Status Bar
- Stepper
- Switch
- Table
- Tabs
- Tag
- Textarea
- Time Field
- Title Bar
- Toggle
- Toggle Group
- Toolbar
- Tooltip
- Tree
- Virtual List
Interactive



<gpui:Rating Value="3" HorizontalAlignment="Left" />Usage
gpui:Rating is a row of Maximum stars (5 by default) with Value of them filled, in the theme's yellow or ActiveBrush. The pointer previews the value under it; a click sets Value to that star, or to the star before when that star is already filled, so a rating can be cleared down to zero. Value binds two-way by default. A disabled rating shows its value only. Each star is a gpui:RatingStar with the :filled and :active pseudo-classes.
| Class | Star icon |
|---|---|
xsmall | 12px |
small | 14px |
| (medium) | 16px |
large | 24px |
Examples
The four sizes.
Interactive



<StackPanel Spacing="8" HorizontalAlignment="Left">
<gpui:Rating Classes="xsmall" Value="3" />
<gpui:Rating Classes="small" Value="3" />
<gpui:Rating Value="3" />
<gpui:Rating Classes="large" Value="3" />
</StackPanel>Maximum sets the number of stars.
Interactive



<StackPanel Spacing="8" HorizontalAlignment="Left">
<gpui:Rating Value="2" Maximum="3" />
<gpui:Rating Value="7" Maximum="10" />
</StackPanel>ActiveBrush colors the filled and previewed stars; the theme's Gpui.Red and Gpui.Primary here.
Interactive



<StackPanel Spacing="8" HorizontalAlignment="Left">
<gpui:Rating Value="4" ActiveBrush="{DynamicResource Gpui.Red}" />
<gpui:Rating Value="4" ActiveBrush="{DynamicResource Gpui.Primary}" />
</StackPanel>A disabled rating neither previews nor changes.
Interactive



<gpui:Rating Value="3" IsEnabled="False" HorizontalAlignment="Left" />Not covered
- Nothing: the control covers the component.