+
Value: {value}
= (args) => (
-
-
-
+
);
@@ -75,28 +72,26 @@ export const HiddenLabel = {
export const Controlled = () => {
const [value, setValue] = useState(OPTIONS[8].value);
return (
-
+
-
- Value: {value}
-
-
-
+
);
};
@@ -151,29 +146,27 @@ export const SearchableDisabled = {
export const SearchableControlled = () => {
const [value, setValue] = useState(OPTIONS[8].value);
return (
-
+
-
- Value: {value}
-
-
-
+
);
};
@@ -244,105 +237,103 @@ export const FormExample = () => {
};
return (
-
-
-
+
);
};
@@ -374,40 +365,40 @@ export const ReactHookForm = () => {
});
return (
-
-
-
-
-
+
+
+
);
};
diff --git a/packages/react/src/components/Forms/Select/multi.stories.tsx b/packages/react/src/components/Forms/Select/multi.stories.tsx
index 6c33b28..4619154 100644
--- a/packages/react/src/components/Forms/Select/multi.stories.tsx
+++ b/packages/react/src/components/Forms/Select/multi.stories.tsx
@@ -6,7 +6,6 @@ import { Meta, StoryFn } from "@storybook/react";
import { faker } from "@faker-js/faker";
import { onSubmit } from ":/components/Forms/Examples/ReactHookForm/reactHookFormUtils";
import { Select } from ":/components/Forms/Select";
-import { CunninghamProvider } from ":/components/Provider";
import { Button } from ":/components/Button";
import { RhfSelect } from ":/components/Forms/Select/stories-utils";
@@ -15,13 +14,13 @@ export default {
component: Select,
} as Meta;
-const Template: StoryFn = (args) => (
-
-
+const Template: StoryFn = (args) => {
+ return (
+
-
-
-);
+
+ );
+};
const CITIES = Array.from({ length: 10 }).map(() => faker.location.city());
const OPTIONS = CITIES.map((city) => ({
@@ -71,21 +70,19 @@ export const HiddenLabel = {
export const Controlled = () => {
const [value, setValue] = useState([OPTIONS[6].value, OPTIONS[8].value]);
return (
-
-
-
- Value: {JSON.stringify(value)}
-
-