
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
react-awesome-toggle-switch
Advanced tools
ReactJS 19 different toggle switches designs in one component
npm i react-awesome-toggle-switch --save
https://gitlab.com/damjan89/react-awesome-toggle-switch
React >= 16.9.0
import AwesomeToggleSwitch from "react-awesome-toggle-switch";
export default class ReactAwesomeToggleSwitchExample extends React.Component<{}, IState> {
constructor(props:any) {
super(props);
this.state = {
val: true,
config:{
toggleTheme: 'DefaultSwitch',
title: 'Title',
leftText:'On',
rightText:'Off',
}
}
}
valChanged(e:any){
this.setState({
val: e
});
}
render() {
return (
<div style={{width: '100%'}}>
<AwesomeToggleSwitch value={this.state.val} onChange={(e:any)=>this.valChanged(e)} config={this.state.config}></AwesomeToggleSwitch>
</div>
);
}
}
ReactDOM.render(<ReactAwesomeToggleSwitchExample/>, document.getElementById('root'));
DefaultSwitch
RadialSwitch
SimpleSwitch
OldSchoolSwitch
GenderSwitch
BulbSwitch
LampSwitch
LockSwitch
NeonSwitch
ZedDashSwitch
TotoroSwitch
ElasticSwitch
SmileySwitch
RollingSwitch
DayNightSwitch
InvertSwitch
FlatSwitch
Neon2Switch
BearSwitch
-> DefaultSwitch
-> BearSwitch
-> BulbSwitch
-> DayNightSwitch
-> ElasticSwitch
-> FlatSwitch
-> GenderSwitch
-> InvertSwitch
-> LampSwitch
-> LockSwitch
-> NeonSwitch
-> Neon2Switch
-> oldSchoolSwitch
-> RadialSwitch
-> RollingSwitch
-> SimpleSwitch
-> SmileySwitch
-> TotoroSwitch
-> ZenDashSwitch
Special Thanks to Vladimir Stepura for this post (all pure html & css can be found in url bellow) and all other developers/designers url: https://freefrontend.com/css-toggle-switches/ MIT © Nick Dam
FAQs
React toggle switch with more than 19 different designs
We found that react-awesome-toggle-switch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.