mirror of
https://github.com/zoriya/v10.git
synced 2026-08-13 01:19:44 +00:00
27 lines
849 B
TypeScript
27 lines
849 B
TypeScript
import { UIComponentProps } from "../../utils/types.js";
|
|
import { ReactNode } from "react";
|
|
//#region src/ui/time/time-group.d.ts
|
|
type GroupState = Record<string, never>;
|
|
interface GroupProps extends UIComponentProps<'span', GroupState> {
|
|
/** Time value components to render inside the group. */
|
|
children?: ReactNode | undefined;
|
|
}
|
|
/**
|
|
* Container for composed time displays. Renders a `<span>` element.
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* <Time.Group>
|
|
* <Time.Value type="current" />
|
|
* <Time.Separator />
|
|
* <Time.Value type="duration" />
|
|
* </Time.Group>
|
|
* ```
|
|
*/
|
|
declare const Group: import("react").ForwardRefExoticComponent<Omit<GroupProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
declare namespace Group {
|
|
type Props = GroupProps;
|
|
}
|
|
//#endregion
|
|
export { Group, GroupProps };
|
|
//# sourceMappingURL=time-group.d.ts.map
|