Skip to content

Commit

Permalink
Checkbox: export variant type (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping authored Nov 25, 2024
1 parent f04c20a commit b736d42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit b736d42

Please sign in to comment.