Skip to content

Instantly share code, notes, and snippets.

@andrew-levy
Last active September 9, 2023 14:20
Show Gist options
  • Save andrew-levy/884a4d90a34b7a7814fd57784c1588de to your computer and use it in GitHub Desktop.
Save andrew-levy/884a4d90a34b7a7814fd57784c1588de to your computer and use it in GitHub Desktop.
Style Direct Club Example
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