Check out our latest release | The Bundle by Grida, A Massive library of 3D Rendered PNGs for UI and Graphics Designs.
From entire frames to a single component, Grida will respond to your click instantly. The headless workflow will make your job even faster. Speed up every step of your project with Grida.
function CardMusicItem({
artwork,
musicName,
}: {
artwork: string | JSX.Element;
musicName: string;
}) => {
return (
<CardWrapper>
<ArtworkContainer>
{artwork}
<MusicPlayButton icon={"play"} />
</ArtworkContainer>
<MusicName>{musicName}</MusicName>
</CardWrapper>
);
};
const CardWrapper = styled.div`
display: flex;
justify-content: flex-start;
flex-direction: column;
align-items: start;
flex: none;
gap: 4px;
width: 138px;
height: 180px;
box-sizing: border-box;
`;
const ArtworkContainer = styled.div`
height: 144px;
position: relative;
align-self: stretch;
`;
const MusicName = styled.span`
color: rgba(164, 164, 164, 1);
text-overflow: ellipsis;
font-size: 14px;
font-family: Roboto, sans-serif;
font-weight: 400;
text-align: left;
align-self: stretch;
`;
function CardMusicItem({
artwork,
musicName,
}: {
artwork: string | JSX.Element;
musicName: string;
}) => {
return (
<CardWrapper>
<ArtworkContainer>
{artwork}
<MusicPlayButton icon={"play"} />
</ArtworkContainer>
<MusicName>{musicName}</MusicName>
</CardWrapper>
);
};
const CardWrapper = styled.div`
display: flex;
justify-content: flex-start;
flex-direction: column;
align-items: start;
flex: none;
gap: 4px;
width: 138px;
height: 180px;
box-sizing: border-box;
`;
const ArtworkContainer = styled.div`
height: 144px;
position: relative;
align-self: stretch;
`;
const MusicName = styled.span`
color: rgba(164, 164, 164, 1);
text-overflow: ellipsis;
font-size: 14px;
font-family: Roboto, sans-serif;
font-weight: 400;
text-align: left;
align-self: stretch;
`;
Grida is solely dedicated to Figma platform to bring you the most advanced, responsive development experience ever. You will find everything you need to go on-air with Figma.
How does Design to code work?Supercharge your productivity with one click.