Use the Rate component
masterRate component is used to display ratings or to allow users to perform quick rating operations on items.repository·master·Indexed 11 days ago
https://github.com/ant-design/ant-designAn enterprise-class UI design language and React UI library providing a comprehensive set of high-quality components, design resources, and tools for building complex web applications. Written in TypeScript, it features CSS-in-JS theme customization, internationalization support, and compatibility with modern browsers, SSR, and Electron. Version 6.6.0 introduces the Listy component for virtualized lists and expanded global configuration via ConfigProvider.
Rate component is used to display ratings or to allow users to perform quick rating operations on items.The Button component is used to trigger immediate actions in response to user clicks. Ant Design provides five main button types and four states to cover various interaction scenarios.
primary): The main action point. There should only be one primary button per action area.default): Used for a group of actions where no single action is more important than others.dashed): Commonly used for 'add' operations.text): For the least significant actions.link): Generally used for navigation to a specific location.danger): For destructive actions like deleting or modifying permissions. Usually requires secondary confirmation.ghost): Used when the background is complex (e.g., on a product page or homepage) to make the button background transparent.disabled): When the action is currently unavailable.loading): For asynchronous operations to provide feedback and prevent multiple submissions.The Segmented component is used to display multiple options and allow users to select a single option. It is ideal for scenarios where switching the selected option changes the content of an associated area.
Available since antd@4.20.0.
The Divider component is used to separate different content sections. Common use cases include:
Ant Design utilizes GitHub Actions across several domains to maintain project quality:
Typography component to display headings, paragraphs, or list content (e.g., for articles, blogs, or logs). It also provides built-in text-based actions like copying, ellipsis (truncation), and editing.DatePicker component allows users to select or input a date via a popup calendar triggered by clicking an input box. It is categorized under Data Entry components.The Steps component is a navigation bar used to guide users through a sequence of subtasks. It is ideal for decomposing complex tasks into manageable, sequential steps.
Common use cases include:
Ant Design is an enterprise-class UI design language and React UI library.
Key Features:
Environment Support:
ColorPicker component allows users to select colors. It supports both single color selection and gradient selection. It can be used in both controlled and uncontrolled modes and provides various ways to format and display color values (hex, rgb, hsb).Alert component is used to display warning or informational messages to users. It can be used as a persistent static container that is optionally closable by user actions. It supports different styles like outlined or filled and different semantic types like success, info, warning, and error.The Pagination component is used to divide long lists into multiple pages, improving load times and allowing users to navigate through data sets. It can be used in a controlled or uncontrolled manner.
Common use cases:
<Pagination onChange={onChange} total={50} />