@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
31 lines (30 loc) • 1.47 kB
TypeScript
import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js";
import { GenericsComponent } from "../../core/components/index.types.js";
import "../../core/index.js";
import { UseInputBorderProps } from "../input/use-input-border.js";
import { GroupProps } from "../group/group.js";
import { UseRadioGroupProps } from "../radio/use-radio-group.js";
import { RadioCardStyle } from "./radio-card.style.js";
import { RadioCardRoot, RadioCardRootProps } from "./radio-card.js";
import { ReactElement } from "react";
//#region src/components/radio-card/radio-card-group.d.ts
interface RadioCardGroupItem<Y extends string = string> extends RadioCardRootProps<Y> {}
interface RadioCardGroupRootProps<Y extends string = string> extends Omit<WithoutThemeProps<GroupProps, RadioCardStyle>, "defaultValue" | "onChange" | "value">, ThemeProps<RadioCardStyle>, UseRadioGroupProps<Y>, UseInputBorderProps, Pick<RadioCardRootProps, "withIndicator"> {
/**
* If provided, generate options based on items.
*
* @default []
*/
items?: RadioCardGroupItem<Y>[];
}
/**
* `RadioCardGroup` is a component that groups `RadioCard` components.
*
* @see https://yamada-ui.com/docs/components/radio-card
*/
declare const RadioCardGroupRoot: GenericsComponent<{
<Y extends string = string>(props: RadioCardGroupRootProps<Y>): ReactElement;
}>;
//#endregion
export { RadioCardGroupRoot, RadioCardGroupRootProps };
//# sourceMappingURL=radio-card-group.d.ts.map