webcoreui
Version:
UI component and template library for Astro, Svelte, and React apps styled with Sass.
26 lines (23 loc) • 557 B
text/typescript
export type ChildrenProps<ComponentType> = {
component: ComponentType
children?: string | number
props?: {
[key: string]: any
}
} | string | number
export type Items<ComponentType> = {
component?: ComponentType;
children?: ChildrenProps<ComponentType>
html?: string
props?: {
[key: string]: any
}
}
export type MasonryProps = {
items: Items<(_props: any) => any>[]
element?: string
gap?: string
columns?: number
sequential?: boolean
className?: string
}