title: Blazor - Component "intellisense" for parameter value
body: <p>I have a Blazor component with a parameter <code>Position</code>. This parameter should only accept <code>Top</code> or <code>Bottom</code> for values.</p>
  
  <p>Is it possible set up "intellisense" for this, so when value for <code>Position</code> should be entered a pop-up with only these to settings goes out?</p>
  
  <hr>
  
  <p><strong>Position.cs</strong></p>
  
  <pre><code>public enum Position
  {
      Top,
      Bottom
  }
  </code></pre>
  
  <p><strong>MyComponent.razor</strong></p>
  
  <pre><code>@inherits MyComponentBase
  
  &lt;div class="@PositionClass"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>MyComponent.razor.cs</strong></p>
  
  <pre><code>public class MyComponentBase : ComponentBase
  {
      [Parameter] public Position Position { get; set; } = ToastPosition.TopRight;
  
      protected string PositionClass { get; set; } = string.Empty;
  ]
  </code></pre>
  
  <p><strong>Index.razor</strong></p>
  
  <pre><code>&lt;MyComponent Position="Position.Bottom" /&gt;
  </code></pre>