mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
migrate tier list
This commit is contained in:
108 files changed
+1238
-922
No files matched your search
@@ -0,0 +1,5 @@
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { ComponentProps, ReactNode } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import { Text } from "../Text";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface DialogFieldProps extends ComponentProps<"div"> {
|
||||
label: ReactNode;
|
||||
}
|
||||
|
||||
// Stacks a label over the control it names
|
||||
// TODO: figoure out the semantics of this
|
||||
export function DialogField({
|
||||
className,
|
||||
label,
|
||||
children,
|
||||
...props
|
||||
}: DialogFieldProps) {
|
||||
return (
|
||||
<div className={classNames(styles.field, className)} {...props}>
|
||||
<Text lowContrast>{label}</Text>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user