Repository navigation
Notched Surfaces
notch creates concave, rounded, and stepped corners. Configure the shape with the builder. Keep the colors of the surface in CSS.
use blinc::layout::prelude::*;
let panel = notch().w(280.0).h(160.0)
.concave_tr(32.0).rounded_bl(24.0)
.class("shaped-panel")
.child(div().child(text("A different kind of corner")));.shaped-panel { background: var(--primary); }You style a notch like any box. A rule for its class or id sets the background, border,
border-radius, box-shadow and opacity. The children of the widget are regular elements with their
own classes and bindings. Unless you add interactive content to a shaped surface, it has no keyboard action.
The component page adapts examples/blinc_app_examples/examples/notch_demo.rs. Hover the menu icons to reveal and slide the concave dropdown. The navigation bulge, angle cuts, peak, and scooped dock show different edge treatments in context.
The gallery exposes --gallery-notch-radius (8–40px), --gallery-notch-bar, and --gallery-notch-active as CSS variables. When you apply CSS, the geometry refreshes and the current demo instance stays:
:root {
--gallery-notch-radius: 24px;
--gallery-notch-active: var(--success);
}Getting Started
Migrating
Mobile Development
Example Gallery
- Example Gallery
- Canvas Element
- Canvas Kit Interactive
- Carousel Demo - Selector API Showcase
- Chrome-Style Tabs
- blinc_cn Components
- Run with
cargo run -p blinc_app_examples --features cn --example cn_pickers_demo. - Code Element
- Complex SVG
- CSS Debug
- CSS Visual Features
- Layer Effects
- Emoji and HTML Entities
- @flow Shader
- Fluid Surface
- Skeleton animation with glTF +
blinc_canvas_kit. - Gpu Pass Demo
- Image CSS Styling
- Image Layer Test
- Keyframe Animation Canvas
- Markdown Editor
- 3D Mesh Demo — renders the Khronos glTF
DamagedHelmetsample model - Motion Demo
- Music Player Glass Card
- Node-editor demo — pre-wired graph with three node types, typed
- Notch Menu Bar
- Overflow Fade
- Overlay System
- Pointer Query
- Rich Text Element
- Rich Text Editor
- Scroll Container
- Semantic @flow
- Sortable
- Stateful API + Signal-bound modifiers demo.
- End-to-end 3D demo wiring Blinc's SceneKit3D renderer up to
- Unified Styling API
- SVG Animation
- Table Builder
- Tabler Icons
- Minimal text positioning test
- Text Input Widgets
- KHR_texture_transform
- Theme System
- Timeline Animation
- Typography
- Wet Glass
- Windowed Application
Web Development
Core Concepts
- Elements & Layout
- Styling & Materials
- CSS Styling
- Theming
- Event Handling
- Accessibility
- State Management
- Lists & Conditional Content
- Element Refs
Animation
Components
Component Library (blinc_cn)
- Overview
- Button
- Card
- Icons
- Typography
- Dialog
- Form Components
- Date, Time and Colour Pickers
- Rich Text Editor
- Code Editor
- Navigation
- Feedback
- Layout
- Data Display
Widgets
- Buttons & Inputs
- Text & Rich Text
- Code Editor
- Scroll Containers
- Virtualized List
- Canvas Drawing
- Gestures
- Notched Surfaces
- Images & SVG
- Audio & Video
- Markdown Rendering
Canvas Kit
Advanced
- Routing & Navigation
- Multi-Window
- System Integration
- Element Query API
- Overlay System
- Custom State Machines
- Pointer Query
- Performance Tips
- Flow Shaders
- 3D Rendering
- Custom GPU Passes
- Hot reloading
Architecture
Contributing