Skip to content
{% emits %}
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

{% emits %}

Attributes

Parameter Type Required Description
event string Bare event name this component emits (e.g. 'bookmark-created')

Valid Parent Contexts

This tag is valid inside: {% component %}

Declares that the parent \{% component %\} emits the named event. The event must be declared in a domain \{% api %\} block. The compiler validates the reference against the global event name index.

Self-closing (/%\}) when no prose body is needed. Optional prose body describes when or why the event is emitted.

Component emitting an event
tagemitscomponentblueprint emits-tag-event
{% emits event="bookmark-added" /%}