diff --git a/packages/website-ue/src/components/Button/index.css b/packages/website-ue/src/components/Button/index.css new file mode 100644 index 000000000..f54e640d9 --- /dev/null +++ b/packages/website-ue/src/components/Button/index.css @@ -0,0 +1,2 @@ +.button { +} diff --git a/packages/website-ue/src/components/Button/index.tsx b/packages/website-ue/src/components/Button/index.tsx new file mode 100644 index 000000000..21336cec2 --- /dev/null +++ b/packages/website-ue/src/components/Button/index.tsx @@ -0,0 +1,9 @@ +import type { ComponentProps } from "react"; +import { classNames } from "../../core/ui/classNames"; +import "./index.css"; + +export interface ButtonProps extends ComponentProps<"button"> {} + +export function Button({ className, ...props }: ButtonProps) { + return ; +} diff --git a/packages/website-ue/src/components/Text/index.tsx b/packages/website-ue/src/components/Text/index.tsx index 16d63bd97..5c8e427bb 100644 --- a/packages/website-ue/src/components/Text/index.tsx +++ b/packages/website-ue/src/components/Text/index.tsx @@ -1,4 +1,5 @@ import type { ComponentProps } from "react"; +import { classNames } from "../../core/ui/classNames"; import type { Color } from "../../core/ui/color"; import "./index.css"; @@ -7,10 +8,15 @@ export interface TextProps extends ComponentProps<"span"> { lowContrast?: boolean; } -export function Text({ color = "gray", lowContrast, ...props }: TextProps) { +export function Text({ + color = "gray", + lowContrast, + className, + ...props +}: TextProps) { return ( diff --git a/packages/website-ue/src/components/TextField/index.tsx b/packages/website-ue/src/components/TextField/index.tsx index 83f56ce05..0e3fd5f2a 100644 --- a/packages/website-ue/src/components/TextField/index.tsx +++ b/packages/website-ue/src/components/TextField/index.tsx @@ -1,13 +1,17 @@ import type { ComponentProps, ReactNode } from "react"; +import { classNames } from "../../core/ui/classNames"; import "./index.css"; export interface TextFieldProps extends ComponentProps<"input"> { children?: ReactNode; } -export function TextField({ children, ...props }: TextFieldProps) { +export function TextField({ children, className, ...props }: TextFieldProps) { return ( -
- {tool.id} -
- )) - } + {Object.values(tools).map((tool) =>