From b736d42c3922f5e476a8a4e20f117f61409e5d56 Mon Sep 17 00:00:00 2001 From: Bucky Schwarz Date: Mon, 25 Nov 2024 12:31:47 -0500 Subject: [PATCH] Checkbox: export variant type (#502) --- src/components/Checkbox/Checkbox.tsx | 9 ++++++++- src/components/types.ts | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Checkbox/Checkbox.tsx b/src/components/Checkbox/Checkbox.tsx index 90321d66..a9e9dea5 100644 --- a/src/components/Checkbox/Checkbox.tsx +++ b/src/components/Checkbox/Checkbox.tsx @@ -4,7 +4,14 @@ import { ReactNode, useId } from "react"; import { styled } from "styled-components"; import { FormRoot } from "../commonElement"; -type CheckboxVariants = "default" | "var1" | "var2" | "var3" | "var4" | "var5" | "var6"; +export type CheckboxVariants = + | "default" + | "var1" + | "var2" + | "var3" + | "var4" + | "var5" + | "var6"; export interface CheckboxProps extends RadixCheckbox.CheckboxProps { label?: ReactNode; diff --git a/src/components/types.ts b/src/components/types.ts index f7cdd618..7b369bac 100644 --- a/src/components/types.ts +++ b/src/components/types.ts @@ -71,6 +71,7 @@ export type { PaginationProps } from "./Pagination/Pagination"; export type { ContextMenuItemProps } from "./ContextMenu/ContextMenu"; export type { GenericLabelProps } from "./GenericLabel/GenericLabel"; export type { MultiAccordionProps } from "./MultiAccordion/MultiAccordion"; +export type { CheckboxVariants } from "./Checkbox/Checkbox"; export type { IconButtonProps }; export type { AlertProps };