Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
import { t as i18nT } from "i18next";
|
||||
import InputNumber from "~/components/ui/input/InputNumber";
|
||||
|
||||
export default function PreviewInputNumber() {
|
||||
return (
|
||||
<div id="input-number">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<InputNumber name="name" title={i18nT("components.input.preview.title")} defaultValue={undefined} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { useState } from "react";
|
||||
import { t as i18nT } from "i18next";
|
||||
import InputNumber from "~/components/ui/input/InputNumber";
|
||||
|
||||
export default function PreviewInputNumberWithAllOptions() {
|
||||
const [value, setValue] = useState<number | undefined>(undefined);
|
||||
return (
|
||||
<div id="input-number-with-all-options">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<InputNumber name="name" title={i18nT("components.input.preview.title")} value={value} setValue={setValue} min={0} max={10} required step="0.01" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import InputNumber from "~/components/ui/input/InputNumber";
|
||||
import { t as i18nT } from "i18next";
|
||||
|
||||
export default function PreviewInputNumberWithHintAndHelp() {
|
||||
return (
|
||||
<div id="input-number-with-hint-and-help">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<InputNumber
|
||||
name="name"
|
||||
title={i18nT("components.input.preview.title")}
|
||||
hint={<span className="text-red-600">{i18nT("components.input.preview.hintText")}</span>}
|
||||
help={i18nT("components.input.preview.helpText")}
|
||||
defaultValue={undefined}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user