Skip to content

Instantly share code, notes, and snippets.

View EisenbergEffect's full-sized avatar

Rob Eisenberg EisenbergEffect

View GitHub Profile
@EisenbergEffect
EisenbergEffect / associated-default-template.ts
Last active June 26, 2022 00:37
A FAST directive that enables rendering templates over any part of a model.
const addressTemplate = html<Address>`
<span>${x => x.country}</span>
`;
@renderWith(addressTemplate)
class Address {
@observable country = 'USA';
}
class Person {
@EisenbergEffect
EisenbergEffect / design-tokens-as-components.razor
Last active June 12, 2022 20:28
Code snippets used in the FAST blog post named "What's new in the Microsoft Fluent UI library for Blazor versions 1.3 and 1.4".
<BaseLayerLuminance Value="(float?)0.15">
<FluentCard BackReference="@context">
<div class="contents">
Dark
<FluentButton Appearance="Appearance.Accent">Accent</FluentButton>
<FluentButton Appearance="Appearance.Stealth">Stealth</FluentButton>
<FluentButton Appearance="Appearance.Outline">Outline</FluentButton>
<FluentButton Appearance="Appearance.Lightweight">Lightweight</FluentButton>
</div>
</FluentCard>