1
0
Fork 0
firefox/toolkit/content/widgets/moz-box-button/moz-box-button.figma.ts
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

26 lines
726 B
TypeScript

import figma, { html } from "@figma/code-connect/html";
figma.connect(
"https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=478-7427&m=dev",
{
props: {
label: figma.string("Label"),
iconSrc: figma.boolean("Show icon", {
true: "chrome://example.svg",
}),
description: figma.boolean("Show description", {
true: figma.string("Description"),
}),
disabled: figma.enum("State", {
Disabled: true,
}),
},
example: props =>
html`<moz-box-button
label=${props.label}
description=${props.description}
iconsrc=${props.iconSrc}
disabled=${props.disabled}
></moz-box-button>`,
}
);