mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-18 14:26:39 +00:00
Create SwitchComponent.tsx
This commit is contained in:
parent
81f5c52b6a
commit
359e300cbf
24
src/pages/LogsPage/SwitchComponent.tsx
Normal file
24
src/pages/LogsPage/SwitchComponent.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import { Switch } from "tamagui"
|
||||
|
||||
const SwitchComponent = () => {
|
||||
return (
|
||||
<Switch
|
||||
size="$1"
|
||||
style={ { backgroundColor: 'grey'} }
|
||||
checked={false}
|
||||
onCheckedChange={() =>(console.log(a))}
|
||||
>
|
||||
<Switch.Thumb
|
||||
style={{
|
||||
right: 7,
|
||||
bottom: 3,
|
||||
backgroundColor: '#fff',
|
||||
height: '16px',
|
||||
width: '16px',
|
||||
}}
|
||||
/>
|
||||
</Switch>
|
||||
)
|
||||
}
|
||||
|
||||
export default SwitchComponent
|
Loading…
x
Reference in New Issue
Block a user