IOS like segmented control in pure ss
npm install segmented-control-cssCreate IOS Style radio buttons (segmented controls) without any JavaScript code.
- Table of Contents
- Installation
- Usage
- Example
- Colors
- Animations
- Border radius
- Support
- Author
- License
``shell`
npm i segmented-control-css
`shell`
yarn add segmented-control-css
Then add the segmented-control.min.css file to your
. The file is located in the dist folder.`html
rel="stylesheet"
href="[path-to-segmented-control-css]/dist/segmented-control.min.css"
/>
`You can also use the
unpkg CDN.`html
rel="stylesheet"
href="https://unpkg.com/segmented-control-css/dist/segmented-control.min.css"
/>
`Usage
To make Segmented Control CSS work properly:
- All options are grouped inside an
.segmented-control container.
- Each option should have:
- A .segmented-control-btn wrapper.
- An with an unique id.
- A