(props: ProgressRootProps)
| 8 | export interface ProgressRootProps extends HTMLProps<'div'>, ProgressRootBaseProps {} |
| 9 | |
| 10 | export const ProgressRoot = (props: ProgressRootProps) => { |
| 11 | const [progressProps, localProps] = createSplitProps<UseProgressProps>()(props, [ |
| 12 | 'defaultValue', |
| 13 | 'formatOptions', |
| 14 | 'id', |
| 15 | 'ids', |
| 16 | 'locale', |
| 17 | 'max', |
| 18 | 'min', |
| 19 | 'onValueChange', |
| 20 | 'orientation', |
| 21 | 'translations', |
| 22 | 'value', |
| 23 | ]) |
| 24 | |
| 25 | const api = useProgress(progressProps) |
| 26 | const mergedProps = mergeProps(() => api().getRootProps(), localProps) |
| 27 | |
| 28 | return ( |
| 29 | <ProgressProvider value={api}> |
| 30 | <ark.div {...mergedProps} /> |
| 31 | </ProgressProvider> |
| 32 | ) |
| 33 | } |
nothing calls this directly
no test coverage detected