rjsf-team/react-jsonschema-form

A 'raw' theme, without any styles applied

Open

#4,492 建立於 2025年2月10日

在 GitHub 查看
 (5 留言) (1 反應) (0 負責人)TypeScript (13,175 star) (2,136 fork)batch import
featurehelp wantedtheme-request

描述

Prerequisites

What theme are you using?

core

Is your feature request related to a problem? Please describe.

I would like to control the UI of the form, but currently using the "core" library assumes usage of Bootstrap.

Describe the solution you'd like

  1. A "raw" version of the form, with no classes/styles applied.
  2. A way to apply/override classes to specific elements, at a global level, for example:
{
    field: "my-field-class",
    input: "my-input-class",
}

Describe alternatives you've considered

What I am currently doing is copying all the code for the core library, and adding a class to style with CSS.

I don't like this approach as this also duplicates logic (and I'm not changing any of that, literally adding a class, so I can then override bootstrap) - I feel this leaves me vulnerable to breaking changes.

貢獻者指南

A 'raw' theme, without any styles applied · rjsf-team/react-jsonschema-form#4492 | Good First Issue