-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some types and add collapsible stories file
- Loading branch information
1 parent
c9220dd
commit fc61f0e
Showing
2 changed files
with
33 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Collapsible from "../../../src/components/misc/Collapsible.vue"; | ||
|
||
export default { | ||
title: "Components/Misc/Collapsible", | ||
component: Collapsible, | ||
}; | ||
|
||
const Template = (args) => ({ | ||
setup() { | ||
return () => <Collapsible {...args}> | ||
{{ | ||
content: () => <>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc tincidunt ultricies. Nullam nec purus nec nunc</> | ||
}} | ||
</Collapsible> | ||
} | ||
}); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
href: "example", | ||
clickableText: "Click me", | ||
arrow: true, | ||
initiallyExpanded: false, | ||
}; | ||
|
||
export const InitiallyExpanded = Template.bind({}); | ||
InitiallyExpanded.args = { | ||
href: "example-expanded", | ||
clickableText: "Click me", | ||
arrow: true, | ||
initiallyExpanded: true, | ||
}; |
fc61f0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storybook published on
https://internal.dev.kestra.io/ui-libs/master/storybook