Skip to content

Instantly share code, notes, and snippets.

@crcn
Created May 17, 2020 16:22
Show Gist options
  • Save crcn/b3c6f0bed13e6b0b8d01a67a5980e966 to your computer and use it in GitHub Desktop.
Save crcn/b3c6f0bed13e6b0b8d01a67a5980e966 to your computer and use it in GitHub Desktop.
<import as="figma" src="../design-generated/test/figmark-2.pc">
<style>
.button {
font-family: Helvetica;
& .background {
padding: 24px;
& .label {
font-family: Helvetica;
display: inline-block;
width: 100%;
}
}
}
</style>
<!-- Component -->
<figma:Button component as="Button" className=">>>button buttonVariant3 {className}">
<figma:Button_Background className=">>>background">
<figma:Button_Label className=">>>label">
{children}
</figma:Button_Label>
</figma:Button_Background>
</figma:Button>
<!-- Preview -->
<Button>
button
</Button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment