feat: wordlists user interface
This commit is contained in:
28
src/components/ui/Select.tsx
Normal file
28
src/components/ui/Select.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import type {
|
||||
DetailedHTMLProps,
|
||||
FC,
|
||||
ReactNode,
|
||||
SelectHTMLAttributes
|
||||
} from 'react'
|
||||
import type { MergeOmitting } from '@/types/helpers'
|
||||
import '@/components/ui/select.css'
|
||||
|
||||
type SelectProps = MergeOmitting<
|
||||
DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>,
|
||||
{
|
||||
children: ReactNode
|
||||
}
|
||||
>
|
||||
|
||||
const Select: FC<SelectProps> = ({ children, className, ...selectProps }) => {
|
||||
return (
|
||||
<select
|
||||
className={`st-rnd-select${className ? ` ${className}` : ''}`}
|
||||
{...selectProps}
|
||||
>
|
||||
{children}
|
||||
</select>
|
||||
)
|
||||
}
|
||||
|
||||
export default Select
|
||||
Reference in New Issue
Block a user