![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@paprika/card
Advanced tools
The Card component is a customizable content container.
yarn add @paprika/card
or with npm:
npm install @paprika/card
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Body content of the card. |
isFullWidth | bool | false | false | If the width of the card should span it's parent container (100%). |
isActive | bool | false | false | If the card is in an "active" or "selected" state. |
size | [ Card.types.size.AUTO, Card.types.size.SMALL, Card.types.size.MEDIUM, Card.types.size.LARGE] | false | Card.types.size.AUTO | Size of the card (font size, min-height, padding, etc). |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Primary content. |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Body content of the footer |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Primary content. |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Primary content. |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Body content of the Text. |
maxTextLength | number | false | 95 | Sets the maximum text length visible on the card |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Body content of the Title. |
The <Card>
component is a customizable content container. It comes with subcomponents that allow for quick and easy creation of various card types for different use cases. Additionally any other child elements can be passed into the Card.
To create a card simply add the <Card></Card>
element. You can set the card to one the of three preset sizes (small, medium, and large) or alternatively you can add a isFullWidth or isAutoHeight property to the card. You can then add several children elements of your choice or use one of the many subcomponents to create your card.
Note: When using the size property the width and height are fixed therefore consideration will have to be given to size of content passed into the Card.
<Card size="medium">
<Card.Header>
<Avatar>E</Avatar>
</Card.Header>
<Card.Content>
<Card.Title>Example</Card.Title>
<Card.Metadata>metadata</Card.Metadata>
<div style={{ width: "100%", height: "24px" }} />
<Card.Text>This is an example of a medium sized Card</Card.Text>
<div style={{ width: "100%", height: "24px" }} />
<Card.Metadata>Created by Kaan</Card.Metadata>
<Card.Metadata>Last updated by Karen</Card.Metadata>
</Card.Content>
<Card.Footer>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
}}
>
<span>150 attributes</span>
<span>10 questions</span>
</div>
</Card.Footer>
</Card>
FAQs
The Card component is a customizable content container.
The npm package @paprika/card receives a total of 670 weekly downloads. As such, @paprika/card popularity was classified as not popular.
We found that @paprika/card demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.