Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@wedgekit/card
Advanced tools
A card is a way to visually group a collection of components on a page.
A card will wrap it's children in a relatively postioned white(N050
) div with a box-shadow.
Focusing in or hovering over the contents of the card will cause the box-shadow to darken to draw the user's attention into the card.
import styled from 'styled-components';
import { IconButton } from '@wedgekit/button';
import Card from '@wedgekit/card';
import { Text } from '@wedgekit/primitives';
const InstallerWrapper = styled.div`
display: flexbox;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 20px;
margin: 8px 32px;
`;
const Example = () => {
const addInstaller = (e) => {
console.log(e.target.getAttribute('aria-label'));
};
return (
<Card>
<InstallerWrapper>
<Text>Installer Name</Text>
<Text> 01/01/21 </Text>
<Text> 01/02/21 </Text>
<IconButton label="Add" icon="plus" domain="primary" onClick={addInstaller} />
</InstallerWrapper>
</Card>
);
};
render(<Example />);
Type: JSX.Element
Required: ✅
Children is the content of the Card
.
Type: string
required: ❌
This is exposed but is only here so that styled-components will be able to style components correctly. Please do not use this unless you really know what you are doing.
Type: RefObject<HTMLDivElement>
Required: ❌
An external ref can be passed in to provide acces to the underlying DOM elements.
FAQs
Cards for the Wedgekit Design System
The npm package @wedgekit/card receives a total of 3 weekly downloads. As such, @wedgekit/card popularity was classified as not popular.
We found that @wedgekit/card demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.