BRAID
Braid Logo
Resources
Releases
Gallery
Playroom
GitHub
Guides
Design Workflow
Development Workflow
Playroom Prototyping
Contribution
Testing Guide
Foundations
Layout
Tones
Iconography
Examples
Job Summary
Basic Form
Marketing Banner
Components
Accordion
Actions
Alert
Autosuggest
Badge
Bleed
Box
Button
ButtonIcon
ButtonLink
Card
Checkbox
Columns
ContentBlock
Dialog
Disclosure
Divider
Drawer
Dropdown
FieldLabel
FieldMessage
Heading
Hidden
HiddenVisually
Inline
List
Loader
MenuItem
MenuItemCheckbox
MenuItemDivider
MenuRenderer
MonthPicker
Notice
OverflowMenu
Page
PageBlock
Pagination
PasswordField
Radio
Deprecated
RadioGroup
Rating
Secondary
Spread
New
Stack
Stepper
Strong
Tabs
New
Tag
Text
TextDropdown
TextField
TextLink
TextLinkButton
Textarea
Tiles
Toggle
TooltipRenderer
useToast
CSS
atoms
breakpoints
globalHeadingStyle
globalTextStyle
responsiveStyle
vars
Logic
BraidPortal
BraidProvider
BraidTestProvider
Link
ThemeNameConsumer
useBreakpoint
Deprecated
useColor
useResponsiveValue
useSpace
useThemeName
Rating
Details
Details
Props
Props
Releases
Releases
Snippets
Snippets
3.0
View code
Code
Open in
Playroom
Accessibility
To support users with screen readers, an
aria-label
is used to provider a description of the rating.
Translation hint
The
aria-label
can be customised by providing the
aria-label
prop.
Variants
The appearance can be customised via the
variant
prop, choosing from
full
(default),
starsOnly
or
minimal
.
Default
4.2
Stars only
Minimal
4.2
View code
Code
Open in
Playroom
Sizing
Follows the same sizing rules as the
Text
component.
3.0
large
3.0
standard
3.0
small
3.0
xsmall
View code
Code
Open in
Playroom
Weight
Supports the same weight scale available on the
Text
component.
Note: Setting the
weight
prop is only valid when using a
variant
that displays the text rating.
3.0
regular
3.0
medium
3.0
strong
View code
Code
Open in
Playroom
BRAID
Braid Logo