![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@radix-ui/react-toggle-group
Advanced tools
The @radix-ui/react-toggle-group package provides components for creating toggle button groups in React applications. It allows for the creation of a set of toggleable buttons that can work in a single or multiple selection mode, making it suitable for scenarios where users need to make one or multiple selections from a group of options.
Single Selection Toggle Group
This feature allows for the creation of a group of toggle buttons where only one option can be selected at a time. It's useful for settings where an exclusive choice is required.
{"import { ToggleGroup, ToggleGroupItem } from '@radix-ui/react-toggle-group';\n\nfunction SingleSelectionToggleGroup() {\n return (\n <ToggleGroup type='single' aria-label='Text alignment'>\n <ToggleGroupItem value='left' aria-label='Left aligned'>\n Left\n </ToggleGroupItem>\n <ToggleGroupItem value='center' aria-label='Center aligned'>\n Center\n </ToggleGroupItem>\n <ToggleGroupItem value='right' aria-label='Right aligned'>\n Right\n </ToggleGroupItem>\n </ToggleGroup>\n );\n}"}
Multiple Selection Toggle Group
This feature enables the creation of a toggle button group where multiple options can be selected simultaneously. It's ideal for settings where users may need to apply multiple attributes or filters at once.
{"import { ToggleGroup, ToggleGroupItem } from '@radix-ui/react-toggle-group';\n\nfunction MultipleSelectionToggleGroup() {\n return (\n <ToggleGroup type='multiple' aria-label='Text options'>\n <ToggleGroupItem value='bold' aria-label='Bold'>\n Bold\n </ToggleGroupItem>\n <ToggleGroupItem value='italic' aria-label='Italic'>\n Italic\n </ToggleGroupItem>\n <ToggleGroupItem value='underline' aria-label='Underline'>\n Underline\n </ToggleGroupItem>\n </ToggleGroup>\n );\n}"}
react-toggle-group
$ yarn add @radix-ui/react-toggle-group
# or
$ npm install @radix-ui/react-toggle-group
View docs here.
FAQs
Unknown package
The npm package @radix-ui/react-toggle-group receives a total of 28,857 weekly downloads. As such, @radix-ui/react-toggle-group popularity was classified as popular.
We found that @radix-ui/react-toggle-group demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.