mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
* Update Figma links updated existing Figma links to point to the new file and added Figma links to components missing them * Added last missing Figma links
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { Meta, moduleMetadata, StoryObj } from "@storybook/angular";
|
|
|
|
import { IconButtonModule } from "../icon-button";
|
|
|
|
import { DisclosureTriggerForDirective } from "./disclosure-trigger-for.directive";
|
|
import { DisclosureComponent } from "./disclosure.component";
|
|
|
|
export default {
|
|
title: "Component Library/Disclosure",
|
|
component: DisclosureComponent,
|
|
decorators: [
|
|
moduleMetadata({
|
|
imports: [DisclosureTriggerForDirective, DisclosureComponent, IconButtonModule],
|
|
}),
|
|
],
|
|
parameters: {
|
|
design: {
|
|
type: "figma",
|
|
url: "https://www.figma.com/design/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=21662-47329&t=k6OTDDPZOTtypRqo-11",
|
|
},
|
|
},
|
|
} as Meta<DisclosureComponent>;
|
|
|
|
type Story = StoryObj<DisclosureComponent>;
|
|
|
|
export const DisclosureWithIconButton: Story = {
|
|
render: (args) => ({
|
|
props: args,
|
|
template: /*html*/ `
|
|
<button type="button" bitIconButton="bwi-sliders" [buttonType]="'muted'" [bitDisclosureTriggerFor]="disclosureRef">
|
|
</button>
|
|
<bit-disclosure #disclosureRef class="tw-text-main tw-block" open>click button to hide this content</bit-disclosure>
|
|
`,
|
|
}),
|
|
};
|