Practice recipe based on public documentation; the Breakdance extension is not installed here.
What it does and when to use it
Provides a place for custom code. Use it for the specific job described below. If a simpler native element can deliver the same outcome, prefer the simpler structure and fewer competing styles.
Availability in Oxygen
The legacy Breakdance Code Block is not registered in the tested Oxygen 6.2.0-beta.9 and Elements 1.1.0-beta.5 library. Do not search for a control that is unavailable. For ordinary layout and styling, use Oxygen’s interface; use a native code element only when the task genuinely needs code, and check which native code elements your installed Oxygen version provides.
Before you start
This is a Breakdance catalogue recipe for use with a compatible Breakdance Elements for Oxygen extension. It is not a guarantee of availability in your version. Check the installed element list and official reference before following the steps. Exact control labels can differ; this recipe has not been executed on this site.
Worked example: A small behavior native elements cannot express
Scenario: A small behavior native elements cannot express. The goal is a useful result on a real project, not a claim that this scenario was a completed client project.
- Define the missing requirement before adding code.
- Use a narrowly scoped fragment and selectors that belong to the component.
- Test normal, empty and invalid-data paths on a staging page.
Expected result
You should have a small behavior native elements cannot express. Verify the result on the frontend using the same content or object described in the steps. A correct builder preview alone does not establish that links, data or interactions work for visitors.
Troubleshooting
If code breaks the whole document, isolate the fragment and inspect errors. Oxygen-native code elements and extension Code Block controls are not assumed to be identical.
Checks before publishing
Use real text and assets rather than a perfect placeholder. Check a long label, narrow screen and empty-data state before publishing.
- Compare desktop and narrow-screen layouts using actual content.
- Follow every destination and operate interactive controls with a keyboard where applicable.
- Check an empty or unavailable-data state when the element depends on a provider.
Official reference and version notes
Official Code Block reference provides the current provider information. This is independent, AI-assisted documentation on Benjamin Olsen’s website; examples are clearly identified as practice recipes.
Check extension element visibility in Oxygen. An element may be hidden where a native equivalent exists.