webcoreui
Version:
UI component and template library for Astro, Svelte, and React apps styled with Sass.
25 lines (21 loc) • 544 B
text/typescript
import type { InputTarget } from '../Input/input'
export type RadioProps = {
items: {
label: string
value: string
subText?: string
selected?: boolean
disabled?: boolean
}[]
name: string
color?: string
inline?: boolean
className?: string
[key: string]: any
}
export type SvelteRadioProps = {
onChange?: (event: Event & InputTarget) => void
} & RadioProps
export type ReactRadioProps = {
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
} & RadioProps