feat(F0Form): add noPadding styling option#4535
Merged
Merged
Conversation
Contributor
📦 Alpha Package Version PublishedUse Use |
Contributor
🔍 Visual review for your branch is published 🔍Here are the links to: |
Contributor
Coverage Report for packages/react
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
fe6cdeb to
10758bc
Compare
Contributor
✅ No New Circular DependenciesNo new circular dependencies detected. Current count: 0 |
Contributor
✅ No breaking public API changesNo public exports were removed, renamed, or had existing props/types changed in a breaking way compared to Comparing |
Opt-out of the default p-4 padding around form content, for embedding a form flush inside a host surface (e.g. an AI canvas panel). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- test: assert the content wrapper keeps p-4 by default and drops it when styling.noPadding is true, for both single-schema and per-section layouts - docs: add a Styling section to F0Form.mdx documenting showSectionsSidepanel and noPadding (nested in F0FormStylingConfig, not surfaced by argTypes) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ting classes Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8adc9b0 to
d872f96
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a
noPaddingflag toF0FormStylingConfigthat opts out of the defaultp-4padding around form content (both the per-section and single-schema layouts), so a form can sit flush inside a host surface (e.g. an AI canvas panel). Defaults tofalse; existing usage is unaffected.Extracted from the co-creation patterns PR (#4307).
Implementation details
noPadding?: booleantoF0FormStylingConfig, honoured in bothF0FormPerSectionandF0FormSingleSchemacontent wrappersnoPaddingoption and document the styling config