feat: wordlists user interface

This commit is contained in:
2025-08-14 14:38:46 -06:00
parent 8481a897dc
commit b4e802fdec
25 changed files with 744 additions and 8 deletions

View File

@@ -0,0 +1,32 @@
import type { ButtonHTMLAttributes, DetailedHTMLProps, FC } from 'react'
import type { MergeOmitting } from '@/types/helpers'
import '@/components/ui/button.css'
export type ButtonProps = MergeOmitting<
DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
{
neutral?: boolean
icon?: boolean
}
>
const Button: FC<ButtonProps> = ({
children,
className,
neutral,
icon,
...buttonProps
}) => {
return (
<button
className={`st-rnd-button${neutral === true ? ' button-neutral' : ''}${icon === true ? ' button-icon' : ''}${
className ? ` ${className}` : ''
}`}
{...buttonProps}
>
{children}
</button>
)
}
export default Button