import { Show, children, splitProps } from 'solid-js' import * as StyledProgress from './styled/progress' export interface ProgressProps extends StyledProgress.RootProps { /** * The type of progress to render. * @default linear */ type?: 'linear' | 'circular' } export const Progress = (props: ProgressProps) => { const [localProps, rootProps] = splitProps(props, ['children', 'type']) const getChildren = children(() => localProps.children) return ( {getChildren()} } > ) }