UNPKG

@create-figma-plugin/ui

Version:

Production-grade Preact components that replicate the Figma UI design

21 lines 845 B
import { h } from 'preact'; import { IconApprovedCheckmark24 } from '../../../icons/icon-24/icon-approved-checkmark-24.js'; import { IconInfoSmall24 } from '../../../icons/icon-24/icon-info-small-24.js'; import { IconWarningSmall24 } from '../../../icons/icon-24/icon-warning-small-24.js'; import { Banner } from '../banner.js'; export default { parameters: { fixedWidth: true }, title: 'Components/Banner' }; export const Default = function () { return h(Banner, { icon: h(IconInfoSmall24, null) }, "Text"); }; export const Success = function () { return (h(Banner, { icon: h(IconApprovedCheckmark24, null), variant: "success" }, "Text")); }; export const Warning = function () { return (h(Banner, { icon: h(IconWarningSmall24, null), variant: "warning" }, "Text")); }; //# sourceMappingURL=banner.stories.js.map