# Override custom components CSS

**URL:** <https://forum.builder.io/t/override-custom-components-css/3248>\
**Category:** Technical Questions\
**Tags:** visual-editor\
**Created:** [February 15, 2023, 9:09am UTC](https://forum.builder.io/t/override-custom-components-css/3248 "2023-02-15T09:09:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuval222](https://avatars.discourse-cdn.com/v4/letter/y/d6d6ee/32.png) [@yuval222](https://forum.builder.io/u/yuval222)\
**Post date:** [February 15, 2023, 9:09am UTC](https://forum.builder.io/t/override-custom-components-css/3248/1 "2023-02-15T09:09:24Z")

</div>

**In order to customize the CSS of a custom component, what is the best way to use the builder CSS properties settings?**

Builder wraps a custom component with a div (builder block), so the CSS properties I add using builder do not affect the actual element I need.

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [February 15, 2023, 9:23am UTC](https://forum.builder.io/t/override-custom-components-css/3248/2 "2023-02-15T09:23:59Z")

</div>

Hi @yuval222 , Thank you for contacting [Builder.io](http://Builder.io) Forum!

For custom components, you can use the `noWrap` option or set your own `defaultStyles` . You can read about those options [here](https://www.builder.io/c/docs/custom-components-setup#component-options). Alternatively, you can turn off default styles globally for your space in **Account Settings \> Advanced Settings \> Editor**.

---

<div class="post-metadata">

**Author:** ![yuval222](https://avatars.discourse-cdn.com/v4/letter/y/d6d6ee/32.png) [@yuval222](https://forum.builder.io/u/yuval222)\
**Post date:** [February 21, 2023, 2:56pm UTC](https://forum.builder.io/t/override-custom-components-css/3248/3 "2023-02-21T14:56:56Z")

</div>

Hi, the noWrap option works well, but the user experience inside the builder platform is changing. For example, I’ve tried it on our custom button component, but I can’t edit it when I click on the element itself…only when I click on the layer on the layers tab i can I edit his inputs.

When registering the component ive added the noWrap:true option and passing {…props.attributes} to the element.

@anon43891756 Is this how it should work?

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [February 21, 2023, 5:22pm UTC](https://forum.builder.io/t/override-custom-components-css/3248/4 "2023-02-21T17:22:20Z")

</div>

Hi @yuval222, Thanks for the follow-up!

Hope this post helps best to resolve your issue:- [Custom Component with noWrap "true" cause focus issue](https://forum.builder.io/t/custom-component-with-nowrap-true-cause-focus-issue/817)

You can also see an example here: [builder/Input.tsx at 7eb57b780e1b3d2718fb42ef83ea91bc281c37a5 · BuilderIO/builder · GitHub](https://github.com/BuilderIO/builder/blob/7eb57b780e1b3d2718fb42ef83ea91bc281c37a5/packages/react/src/blocks/forms/Input.tsx#L106)

Let me know if this doesn’t help or have further questions!
