Skip to content

CCV2 Embedded apps for concepts#1431

Open
sfc-gh-dmatthews wants to merge 23 commits intomainfrom
apps/custom-components-concepts
Open

CCV2 Embedded apps for concepts#1431
sfc-gh-dmatthews wants to merge 23 commits intomainfrom
apps/custom-components-concepts

Conversation

@sfc-gh-dmatthews
Copy link
Contributor

@sfc-gh-dmatthews sfc-gh-dmatthews commented Mar 7, 2026

📚 Context

This PR adds the source code for embedded examples in the Custom Components V2 docs, introduced later in this stack.

🧠 Description of Changes

Current:

No examples or documentation existed for the new components v2 API.

Revised:

Added complete component examples demonstrating various patterns and capabilities:

Basic Examples:

  • Simple "Hello World" component with inline HTML/CSS/JS
  • Simple button component with trigger values and callbacks
  • Basic counter with state management and external files

Interactive Components:

  • Interactive counter with both state and trigger values
  • Hold-to-confirm danger button with animations and cooldown
  • Radial menu selector with viewport-aware positioning
  • Stopwatch with complex state management and lap tracking

Display Components:

  • Radial dial gauge with smooth animations and color zones
  • Rich data handling example with DataFrames and base64 images

Component Architecture:

  • Modular file organization patterns (__init__.py, separate CSS/HTML/JS files)
  • State vs trigger value usage patterns
  • Callback function implementations
  • Data serialization examples (JSON, Arrow, base64)

Advanced Features:

  • CSS animations and transitions using Streamlit design tokens
  • Mobile-responsive touch event handling
  • Viewport boundary detection and positioning
  • Component cleanup and memory management
  • Session state integration patterns

💥 Impact

Size:

  • Small
  • Not small

🌐 References

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copy link
Contributor Author

sfc-gh-dmatthews commented Mar 7, 2026

@sfc-gh-dmatthews sfc-gh-dmatthews marked this pull request as ready for review March 7, 2026 16:27
@sfc-gh-dmatthews sfc-gh-dmatthews changed the title Quickstart examples CCV2 Embedded apps for concepts Mar 7, 2026
@sfc-gh-dmatthews sfc-gh-dmatthews force-pushed the apps/custom-components-concepts branch from 301fdeb to c63a5b7 Compare March 8, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant