1.0.29 • Published 9 months 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
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.0.22
9 months ago
1.0.21
9 months ago
1.0.20
9 months ago
1.0.26
9 months ago
1.0.25
9 months ago
1.0.24
9 months ago
1.0.23
9 months ago
1.0.29
9 months ago
1.0.28
9 months ago
1.0.27
9 months ago
1.0.15
9 months ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago