Last active
September 9, 2023 14:20
-
-
Save andrew-levy/884a4d90a34b7a7814fd57784c1588de to your computer and use it in GitHub Desktop.
Style Direct Club Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { styled } from 'style-direct-club'; | |
import { MyButton } from './components/MyButton'; | |
const MyStyledButton = styled(MyButton); | |
function App() { | |
return ( | |
<MyStyledButton | |
backgroundColor="blue" | |
paddingTop={10} | |
borderWidth={1} | |
onPress={() => console.log("Pressed")} | |
> | |
<styled.Text color="white">Press Me!</styled.Text> | |
</MyStyledButton> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment