{"library":"rc-segmented","type":"library","category":null,"description":"rc-segmented is a foundational React component for building highly customizable segmented controls, extensively utilized within the Ant Design ecosystem. It presents choices as a group of buttons where typically only one can be active at a time, akin to a radio group. The component supports various data types for options (strings, numbers, or objects), robust `onChange` event handling, and manages selection state. Currently stable at version `2.7.1`, the package maintains a moderate release cadence, focusing on bug fixes, performance enhancements, and crucial accessibility improvements. While `rc-segmented` is the primary package, a newer scoped version, `@rc-component/segmented`, sometimes receives parallel updates, which can be a point of confusion for developers. Key differentiators include its deep integration with Ant Design's principles, a strong emphasis on accessibility, and a clear, functional API for managing segmented choices efficiently within React applications.","language":"javascript","status":"active","version":"2.7.1","tags":["javascript","react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design","typescript"],"install":[{"cmd":"npm install rc-segmented","imports":["import Segmented from 'rc-segmented';","import 'rc-segmented/assets/index.css';","import type { SegmentedOption } from 'rc-segmented';"]},{"cmd":"yarn add rc-segmented","imports":[]},{"cmd":"pnpm add rc-segmented","imports":[]}],"homepage":"https://react-component.github.io/segmented","github":"https://github.com/react-component/segmented","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/rc-segmented","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/rc-segmented/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}