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 InputCheckbox from "~/components/ui/input/InputCheckbox";
|
||||
|
||||
export default function PreviewInputCheckbox() {
|
||||
return (
|
||||
<div id="input-checkbox">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<InputCheckbox name="name" title={i18nT("components.input.preview.title")} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
import { t as i18nT } from "i18next";
|
||||
import { useState } from "react";
|
||||
import InputCheckboxCards from "../../InputCheckboxCards";
|
||||
|
||||
export default function PreviewInputCheckboxCards() {
|
||||
const [selected, setSelected] = useState<(string | number)[]>([]);
|
||||
return (
|
||||
<div id="input-checkbox">
|
||||
<div className="not-prose border-border bg-background border border-dashed p-6">
|
||||
<InputCheckboxCards
|
||||
name="name"
|
||||
title={i18nT("components.input.preview.title")}
|
||||
options={[
|
||||
{
|
||||
name: i18nT("components.previewInputs.options.option1"),
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
name: i18nT("components.previewInputs.options.option2"),
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
name: i18nT("components.previewInputs.options.option3"),
|
||||
value: 3,
|
||||
disabled: true,
|
||||
},
|
||||
]}
|
||||
value={selected}
|
||||
onChange={(e) => setSelected(e)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { useState } from "react";
|
||||
import { t as i18nT } from "i18next";
|
||||
import InputCheckbox from "~/components/ui/input/InputCheckbox";
|
||||
|
||||
export default function PreviewInputCheckboxWithState() {
|
||||
const [value, setValue] = useState(true);
|
||||
return (
|
||||
<div id="input-checkbox-with-state">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<InputCheckbox name="name" title={i18nT("components.input.preview.title")} value={value} setValue={setValue} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user