mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
add card component (#9022)
This commit is contained in:
parent
3a49dbf803
commit
6b5940e00e
3 changed files with 38 additions and 0 deletions
19
app/react/components/Card/Card.tsx
Normal file
19
app/react/components/Card/Card.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import clsx from 'clsx';
|
||||
import { PropsWithChildren } from 'react';
|
||||
|
||||
export interface Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function Card({ className, children }: PropsWithChildren<Props>) {
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
className,
|
||||
'rounded border border-solid border-gray-5 bg-gray-neutral-3 p-5 th-highcontrast:border-white th-highcontrast:bg-black th-dark:border-legacy-grey-3 th-dark:bg-gray-iron-11'
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue