Skip to content

MemberName

Renders the name of the current member declaration from MemberDeclaration context. Use this inside a MemberDeclaration component instead of <Name />, which reads from the top-level Declaration context.

import { MemberName } from "@alloy-js/core";
<MemberName />