Add versions explorer page

This commit is contained in:
Misode
2022-03-02 02:34:41 +01:00
parent fd46bc4360
commit cb24e61cf0
20 changed files with 526 additions and 115 deletions

View File

@@ -0,0 +1,14 @@
import { hexId } from '../../Utils'
interface Props {
label: string,
value: boolean,
onChange: (value: boolean) => unknown,
}
export function Checkbox({ label, value, onChange }: Props) {
const id = hexId()
return <label class="checkbox">
<input id={id} type="checkbox" checked={value} onClick={() => onChange(!value)} />
{label}
</label>
}

View File

@@ -1,2 +1,3 @@
export * from './Checkbox'
export * from './Input'
export * from './SearchList'