Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/quiz-question/audio/audio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,25 @@ export const WithAriaLabel: Story = {
},
};

export const WithCustomClass: Story = {
export const WithAudioSegment: Story = {
args: {
src: "https://cdn.freecodecamp.org/curriculum/english/animation-assets/sounds/1.1-1.mp3",
"aria-label": "Audio player",
className: "mt-4",
"aria-label": "Audio segment demo",
startTime: 2,
finishTime: 5,
},
parameters: {
docs: {
description: {
story:
"This story demonstrates the Audio component with `startTime` and `finishTime` props, which play only a segment of the audio instead of the full clip.",
},
source: {
code: `<Audio
src="https://cdn.freecodecamp.org/curriculum/english/animation-assets/sounds/1.1-1.mp3"
aria-label="Audio player"
className="mt-4"
aria-label="Audio segment demo"
startTime={2}
finishTime={5}
/>`,
},
},
Expand Down
Loading