A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
import { HTMLAttributes, ReactNode } from 'react'
import classNames from 'classnames'
import './index.css'
type PanelTone = 'translucent' | 'solid' | 'glass' | 'none'
type PanelPadding = 'none' | 'sm' | 'md' | 'lg'
interface PanelProps extends HTMLAttributes<HTMLDivElement> {
children: ReactNode
tone?: PanelTone
padding?: PanelPadding
}
export default function Panel({
children,
tone = 'translucent',
padding = 'md',
className,
...divProps
}: PanelProps) {
return (
<div
className={classNames(
'Panel',
`Panel--${tone}`,
`Panel--padding-${padding}`,
className
)}
{...divProps}
>
{children}
</div>
)
}