chore: app group optimizations (#1027)
This commit is contained in:
@@ -2,15 +2,16 @@ import { CustomCheckboxContainer, CustomCheckboxInput, CustomCheckboxInputProps
|
||||
import '@reach/checkbox/styles.css'
|
||||
import { ComponentChildren, FunctionalComponent } from 'preact'
|
||||
import { useState } from 'preact/hooks'
|
||||
import { HTMLProps } from 'react'
|
||||
|
||||
export type SwitchProps = HTMLProps<HTMLInputElement> & {
|
||||
export type SwitchProps = {
|
||||
checked?: boolean
|
||||
// Optional in case it is wrapped in a button (e.g. a menu item)
|
||||
onChange?: (checked: boolean) => void
|
||||
className?: string
|
||||
children?: ComponentChildren
|
||||
role?: string
|
||||
disabled?: boolean
|
||||
tabIndex?: number
|
||||
}
|
||||
|
||||
export const Switch: FunctionalComponent<SwitchProps> = (props: SwitchProps) => {
|
||||
|
||||
Reference in New Issue
Block a user