mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start of cards
This commit is contained in:
1 parent
c5f5f69fd6
commit
db8ac195d4
6 files changed
+58
-11
No files matched your search
@@ -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 (
|
||||
<div className="text-field" data-has-icon={children !== undefined}>
|
||||
<div
|
||||
className={classNames("text-field", className)}
|
||||
data-has-icon={children !== undefined}
|
||||
>
|
||||
{children}
|
||||
<input {...props} />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user