# How do I tell my visual builder if the user has login or not on my frontend next.jsl

**URL:** <https://forum.builder.io/t/how-do-i-tell-my-visual-builder-if-the-user-has-login-or-not-on-my-frontend-next-jsl/1804>\
**Category:** Technical Questions\
**Tags:** visual-editor, react, nextjs\
**Created:** [February 24, 2022, 8:36am UTC](https://forum.builder.io/t/how-do-i-tell-my-visual-builder-if-the-user-has-login-or-not-on-my-frontend-next-jsl/1804 "2022-02-24T08:36:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [February 24, 2022, 8:36am UTC](https://forum.builder.io/t/how-do-i-tell-my-visual-builder-if-the-user-has-login-or-not-on-my-frontend-next-jsl/1804/1 "2022-02-24T08:36:44Z")

</div>

**Builder content link**  
_[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/f285baf96dc94bfd9f7735005d228ca9)_

**Builder public api key**  
_fff8e6fa6fbc4f6abf4fb93c03e661f1_

**What are you trying to accomplish**  
\*  
I made a footer in builder and want to know how do I show or hide an element in footer whether the user logged in or not in the site.  
Basically I want to send the user data from my nextjs to the builder footer model. So I can easily bind the element according to it.  
\*

**Code stack you are integrating Builder with**  
_e.g. NextJS, react_

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [February 25, 2022, 4:22pm UTC](https://forum.builder.io/t/how-do-i-tell-my-visual-builder-if-the-user-has-login-or-not-on-my-frontend-next-jsl/1804/2 "2022-02-25T16:22:27Z")

</div>

Hi @anupama.sharmaa,

You can pass data to the [Builder component](https://github.com/BuilderIO/builder/tree/main/packages/react#passing-content-manually) to use in the UIs, including binding data values. All data passed down to the Builder Component is available in Builder [action and bindings](https://www.builder.io/c/docs/guides/custom-code) as state.

```auto
<BuilderComponent
model="footer"
data={{isLoggedIn}} >

```

You can also use [targeting](https://www.builder.io/c/docs/guides/targeting-and-scheduling#custom-targeting) to target different pieces of Builder content to different users based on userAttributes.
