From 0bd9004deb9b178371f5bb11903ed326396d253c Mon Sep 17 00:00:00 2001
From: Carlos Filoteo
Date: Mon, 12 Aug 2024 23:19:11 -0600
Subject: [PATCH] Additional docs
---
src/Accordion/Accordion.stories.tsx | 18 ++++++++++-
src/Autocomplete/Autocomplete.stories.tsx | 39 +++++++++++++++++++----
2 files changed, 49 insertions(+), 8 deletions(-)
diff --git a/src/Accordion/Accordion.stories.tsx b/src/Accordion/Accordion.stories.tsx
index 1027d6d..d3dedc8 100644
--- a/src/Accordion/Accordion.stories.tsx
+++ b/src/Accordion/Accordion.stories.tsx
@@ -22,7 +22,23 @@ export const Default: Story = () => {
HTML Details element
. Some UI requirements, like that in the custom trigger story,
- make a custom implementation necessary.
+ make a custom implementation necessary. Even a requirement as simple as
+ "animate in/out" might require this.
+
diff --git a/src/Autocomplete/Autocomplete.stories.tsx b/src/Autocomplete/Autocomplete.stories.tsx
index 24666c2..30a5970 100644
--- a/src/Autocomplete/Autocomplete.stories.tsx
+++ b/src/Autocomplete/Autocomplete.stories.tsx
@@ -1,19 +1,44 @@
-import type { StoryDefault, Story } from "@ladle/react";
+import type { StoryDefault, Story } from "@ladle/react"
-import { Autocomplete, type AutocompleteProps } from "./Autocomplete";
-import { AutocompleteOption } from "./AutocompleteOption";
-import { useState } from "react";
+import { Autocomplete, type AutocompleteProps } from "./Autocomplete"
+import { AutocompleteOption } from "./AutocompleteOption"
+import { useState } from "react"
export default {
args: {
autoExpand: true,
},
-} satisfies StoryDefault;
+} satisfies StoryDefault
export const Default: Story = () => {
- const [displayValue, setDisplayValue] = useState("");
+ const [displayValue, setDisplayValue] = useState("")
return (
+
+ This Autocomplete was built with the assumption that it might not know
+ what its "options" might look like. Specifically, the use case was to
+ allow for Design/UX to be able to have full flexibility the way the
+ option displayed, as long as the action specified a value on the
+ MenuItem.
+