---
title: "Discussion on \"Creating Reusable TopBar in Jetpack Compose and Slot Pattern\" | Hashnode"
description: "Discussion on \"Creating Reusable TopBar in Jetpack Compose and Slot Pattern\". I was looking for a way to write a composable function that takes content as a parameter and didn't see many examples of that. I just realized that I'm rewriting the same lines of code for each screen and I started to search for a solution. I didn't ..."
url: "https://hashnode.com/posts/creating-reusable-topbar-in-jetpack-compose-and-slot-pattern/634730e989a9ed6719315914"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating Reusable TopBar in Jetpack Compose and Slot Pattern](https://hasancobanoglu.hashnode.dev/creating-reusable-topbar-in-jetpack-compose-and-slot-pattern?utm_source=hashnode&utm_medium=feed)

I was looking for a way to write a composable function that takes content as a parameter and didn't see many examples of that. I just realized that I'm rewriting the same lines of code for each screen and I started to search for a solution. I didn't ...

Oct 12, 2022 · 7 min read · hasancobanoglu.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#jetpack-compose](https://hashnode.com/tag/jetpack-compose)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#android-studio](https://hashnode.com/tag/android-studio)

## Written by

[Hasan Çobanoğlu](https://hashnode.com/@Hasancbngl)

@Hasancbngl · Turkey

  
[View profile](https://hashnode.com/@Hasancbngl)

Software Developer

Hi there, I'm hasan who is passionate about tech. I Write about stuff I love, learn and the problems I solve.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
