-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(ReviewList): add submittable form
- Loading branch information
1 parent
c77fdd0
commit 3324b05
Showing
2 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
export { ReviewList as Primary } from "./ReviewList"; | ||
import { ReviewList, reviewItemBuilder } from "./ReviewList"; | ||
import { formStory, meta } from "../../components/story-form"; | ||
|
||
export default { | ||
title: "showcase/ReviewList", | ||
...meta, | ||
}; | ||
|
||
const fields = { | ||
positives: reviewItemBuilder(["quality materials used", "waterproof"]), | ||
negatives: reviewItemBuilder(["could be lighter"]), | ||
}; | ||
|
||
export const Primary = formStory({ | ||
args: { | ||
fields, | ||
children: ({ form }) => <ReviewList form={form} />, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters