Skip to content

Commit

Permalink
chore: restore support for custom docs
Browse files Browse the repository at this point in the history
Solves #366

Co-authored-by: Evan Yamanishi <[email protected]>
  • Loading branch information
cafrias and sh0ji committed Dec 16, 2024
1 parent 8e38c95 commit 41002c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const config: StorybookConfig = {
},
},

stories: ["../packages/react/src/**/*.stories.{ts,tsx,mdx}"],
stories: [
"../packages/react/src/**/*.mdx",
"../packages/react/src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],

addons: [
getAbsolutePath("@storybook/addon-essentials"),
Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/patterns/MultipleChoice/MultipleChoice.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArgsTable, Canvas, Meta } from '@storybook/blocks';
import { ArgTypes, Meta } from '@storybook/blocks';
import { MultipleChoiceQuestion, MultipleChoiceFeedback } from '.';
import * as MultipleChoiceStories from './MultipleChoice.stories';

Expand All @@ -12,10 +12,10 @@ The multiple choice pattern exposes a component for the question view and a comp

The `<MultipleChoiceQuestion>` component is the initial view for the pattern.

<ArgsTable of={MultipleChoiceQuestion} />
<ArgTypes of={MultipleChoiceQuestion} />

## Feedback view props

The `<MultipleChoiceFeedback>` view extends our [Modal dialog](?path=/docs/modal--docs) and should be shown after the user answers the question.

<ArgsTable of={MultipleChoiceFeedback} />
<ArgTypes of={MultipleChoiceFeedback} />

0 comments on commit 41002c7

Please sign in to comment.