docs.rs failed to build blinc_cn-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
blinc_cn
Part of the Blinc UI Framework
This crate is a component of Blinc, a GPU-accelerated UI framework for Rust. For full documentation and guides, visit the Blinc documentation.
Component library for Blinc UI - shadcn/ui-style themed components.
Overview
blinc_cn provides a comprehensive set of production-ready UI components built on top of blinc_layout. Inspired by shadcn/ui, it offers beautifully designed, accessible components with consistent theming.
Features
- 40+ Components: Buttons, cards, dialogs, menus, forms, and more
- Theme Integration: Automatic dark/light mode support
- Variants & Sizes: Multiple visual variants for each component
- Accessibility: Keyboard navigation and ARIA support
- Customizable: Override styles and behaviors as needed
Installation
[]
= { = "../blinc_cn" }
Quick Start
use *;
Components
Buttons
// Variants
button.variant
button.variant
button.variant
button.variant
button.variant
button.variant
// Sizes
button.size
button.size
button.size
button.size
// With icon
button.icon
Cards
card
.child
.child
.child
Dialogs
dialog
.open
.on_open_change
.child
.child
Form Components
// Input
input
.placeholder
.value
.on_change
// Textarea
textarea
.placeholder
.rows
// Checkbox
checkbox
.checked
.on_change
.child
// Switch
switch_
.checked
.on_change
// Radio Group
radio_group
.value
.on_change
.child
.child
// Select
select
.value
.on_change
.child
.child
// Slider
slider
.value
.min
.max
.on_change
Navigation
// Tabs
tabs
.value
.on_change
.child
.child
.child
// Dropdown Menu
dropdown_menu
.child
.child
// Breadcrumb
breadcrumb
.child
// Sidebar
sidebar
.child
.child
Feedback
// Alert
alert
.variant
.child
.child
// Badge
badge.variant
badge.variant
// Progress
progress.value
// Spinner
spinner.size
// Skeleton
skeleton.w.h
// Toast
toast
.title
.description
.variant
Layout
// Avatar
avatar
.src
.fallback
.size
// Avatar Group
avatar_group
.max
.child
.child
.child
.child
// Separator
separator.orientation
// Aspect Ratio
aspect_ratio
.child
// Scroll Area
scroll_area
.h
.child
// Collapsible
collapsible
.open
.child
.child
// Accordion
accordion
.child
Data Display
// Tooltip
tooltip
.child
.child
// Hover Card
hover_card
.child
.child
// Popover
popover
.child
.child
// Charts
chart
.chart_type
.data
.x_axis
.y_axis
Theming
Components automatically use theme tokens:
use ThemeState;
// Set theme
set_color_scheme;
// Components automatically update
button // Uses theme colors
Component List
| Category | Components |
|---|---|
| Buttons | Button |
| Cards | Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter |
| Dialogs | Dialog, AlertDialog, Sheet, Drawer |
| Forms | Input, Textarea, Checkbox, Switch, Radio, Select, Combobox, Slider |
| Navigation | Tabs, DropdownMenu, ContextMenu, Menubar, NavigationMenu, Breadcrumb, Pagination, Sidebar |
| Feedback | Alert, Badge, Progress, Spinner, Skeleton, Toast |
| Layout | Avatar, Separator, AspectRatio, ScrollArea, Collapsible, Accordion, Resizable |
| Data | Tooltip, HoverCard, Popover, Chart, Tree |
| Typography | Typography (H1-H6, P, Blockquote, etc.) |
| Misc | Icon, Kbd, Label |
License
MIT OR Apache-2.0