In this post, you'll find great examples of reusable code snippets in Bootstrap 4 and 5. You can download the files and use them in your projects absolutely free.
Or, you can use these snippets as a learning tool to get a better understanding of how Bootstrap works.