# A component for Conditional UI elements?

**URL:** <https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255>\
**Category:** Development\
**Created:** [February 27, 2019, 5:19pm UTC](https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255 "2019-02-27T17:19:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [May 19, 2021, 12:22am UTC](https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255/3 "2021-05-19T00:22:41Z")

</div>

You can look up `currentUser` throughout most of the application and use its properties to create your condition. Can you share more details about what you’re trying to achieve?

---

_[View the full topic](https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255)._
