Arctic Design
Get StartedFoundationsComponentsExamples
K

Card

Displays a card component with sections of header, content and footer equally spaced

Usage
Create New Event
Organize and manage your upcoming events effortlessly.
Size
Variant
Square
import {
Button,
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardProps,
CardTitle,
DatePicker,
Select,
Stack,
TextInput,
} from '@arctic-kit/snow';
const selectOptions = [
{ value: 'conference', label: 'Conference' },
{ value: 'workshop', label: 'Workshop' },
{ value: 'webinar', label: 'Webinar' },
{ value: 'meetup', label: 'Meetup' },
];
function Demo() {
return (
<Card size="medium" variant="outlined" sx={{ minWidth: 350 }}>
<CardHeader>
<CardTitle>Create New Event</CardTitle>
<CardDescription>
Organize and manage your upcoming events effortlessly.
</CardDescription>
</CardHeader>
<CardContent>
<Stack spacing={3}>
<TextInput
id='event-name'
label='Event Name'
placeholder='Enter the name of your event'
/>
<Select
label='Category'
id='category'
options={selectOptions}
placeholder='Select a category'
/>
<DatePicker
id='event-date'
label='Date'
placeholder='Select event date'
/>
</Stack>
</CardContent>
<CardFooter className='flex justify-between'>
<Stack direction='horizontal' spacing={3} justifyBetween>
<Button variant='outlined'>Reset</Button>
<Button>Save Event</Button>
</Stack>
</CardFooter>
</Card>
);
}

API Reference

PropsTypeDefault
classNamestring | undefined---
elevation0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10---
onClick(() => void) | undefined---
selectedboolean | undefined---
size"small" | "medium" | "large"medium
squareboolean | undefined---
styleCSSProperties | undefined---
variantPaperVariant---