MCPcopy
hub / github.com/chakra-ui/ark / ProgressRoot

Function ProgressRoot

packages/solid/src/components/progress/progress-root.tsx:10–33  ·  view source on GitHub ↗
(props: ProgressRootProps)

Source from the content-addressed store, hash-verified

8export interface ProgressRootProps extends HTMLProps<'div'>, ProgressRootBaseProps {}
9
10export 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}

Callers

nothing calls this directly

Calls 2

createSplitPropsFunction · 0.90
useProgressFunction · 0.90

Tested by

no test coverage detected