# CodeGen - simple, succint and customizable code generation for your libraries

**URL:** <https://forum.elixirforum.com/t/codegen-simple-succint-and-customizable-code-generation-for-your-libraries/54521>\
**Category:** Announcing\
**Tags:** library, defmacro\
**Created:** [March 12, 2023, 9:51pm UTC](https://forum.elixirforum.com/t/codegen-simple-succint-and-customizable-code-generation-for-your-libraries/54521 "2023-03-12T21:51:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mayel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mayel/32/26431_2.png) [@mayel](https://forum.elixirforum.com/u/mayel)\
**Post date:** [March 12, 2023, 11:58pm UTC](https://forum.elixirforum.com/t/codegen-simple-succint-and-customizable-code-generation-for-your-libraries/54521/7 "2023-03-12T23:58:07Z")

</div>

> [@tmbb](#):
>
> override it on a case-by-case example

In your example, isn’t that what `Phoenix.Component`’s `attr` is for? eg. `<.input width=9 />` so you can change the options when using a component?

---

_[View the full topic](https://forum.elixirforum.com/t/codegen-simple-succint-and-customizable-code-generation-for-your-libraries/54521)._
