1.0.29 • Published 2 years ago
react-language-select-button v1.0.29
Introduction
It is the language toggle button that helps to switch the language for the WebApp/Website.
Installation
npm install react-language-select-button
Usage
For use it in your app:
With React Component
import './styles.scss';
import LanguageSelector from 'react-language-select-button';
function App() {
return (
<div className="App">
<LanguageSelector
onClickButton1={() => console.log("first button clicked")}
onClickButton2={() => console.log("Second button clickec")}
buttonName2='ने'
buttonName1="EN"
classNameButton="test"
selectedLanguageClassName="test2"
/>
</div>
);
}
export default App;
Props
Common props you may want to specify include:
- onClickButton1 - function to control the output on clicking first button
- onClickButton2 - function to control the output on clicking second button
- classNameButton - Classname to change the css style for the default buttons
- selectedLanguageClassName - Classname to change the css style for selected button
- buttonName1 - Name to be provided for first button
- buttonName2 - Name to be provided for second button
Example sample Button
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.26
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.15
2 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago