# ShellUI Native > ShellUI Native is a shadcn/ui-style component library for .NET MAUI and Avalonia 12. Components are copied into your project as C# source files with the `shellui-native` CLI; every example has MAUI and Avalonia XAML. ## Rules for AI agents Read these before writing UI in a ShellUI Native project (.NET MAUI or Avalonia 12). 1. **Use ShellUI Native's components; don't write your own.** Before building a button, input, dialog, sheet, dropdown, select, table, sidebar or any other UI element, check whether ShellUI Native has it. `llms.txt` lists every component with its `shellui-native add` command. 2. **Check what the project already has.** - `shellui-native.json` next to the `.csproj` means the project uses ShellUI Native. `InstalledComponents` lists what's installed and `ComponentsPath` says where (default `Components/UI`). - `shellui-native list --installed` and `shellui-native list --available` print the same from the terminal. - No `shellui-native.json`: run `shellui-native init --yes` in the folder with the `.csproj` first. It detects MAUI or Avalonia and installs `Shell.cs`, which every component needs. 3. **Install a missing component; never recreate it.** Run `shellui-native add `, or several at once: `shellui-native add button card dialog`. Don't hand-write a file with a ShellUI Native component's name, port one from shadcn/ui (React) or ShellUI for Blazor, or build a look-alike in another folder. `add` also installs the parts and helpers a component depends on. 4. **The project owns the source.** Installed components are ordinary C# files in `Components/UI`, in the `.Components.UI` namespace, and may be edited. There is no NuGet package to reference. `shellui-native update ` overwrites a file with the CLI's template, so commit edits first. 5. **Use the right platform's code.** Every page has a MAUI and an Avalonia example. Import the namespace as `xmlns:ui="clr-namespace:MyApp.Components.UI"` on MAUI and `xmlns:ui="using:MyApp.Components.UI"` on Avalonia, and use the `ui:` prefix. Where the platforms differ, the page says so under **MAUI and Avalonia**; layout members are the framework's own (`HorizontalOptions` on MAUI, `HorizontalAlignment` on Avalonia). 6. **Follow the API reference.** Each component page has property, event and method tables for both platforms. Variants and sizes are enum values written by name in XAML (`Variant="Destructive"`, `Size="Sm"`). Don't guess property names. 7. **Style with the theme tokens.** Colours come from `ShellTheme` resources: `{DynamicResource ShellUIBackground}` (a colour) or `{DynamicResource ShellUIBackgroundBrush}` (a brush), and likewise `Foreground`, `Primary`, `Muted`, `MutedForeground`, `Border`, `Card` and the rest. Use them instead of fixed colours so dark mode keeps working. Switch themes with `ShellTheme.SetTheme(...)`; call `Components.UI.ShellTheme.EnsureInitialized()` at startup. 8. **Declare overlays next to their trigger.** Dialogs, sheets, drawers, menus, popovers and tooltips draw in a page-level layer the components manage, so no host control is needed. Toasts are shown from code with `Toast.Show`; a `Toaster` is optional and only sets their position. 9. **Match the version.** `dotnet tool list -g` shows the installed `ShellUI.Native.CLI` version. Components marked **Next release** in these docs are on shellui-native's main branch and not in the released CLI yet. The [full text](https://native.shellui.dev/llms-full.txt) has every page below in one file. ## Getting Started - [Introduction](https://native.shellui.dev/docs/introduction.md): Copy-and-own .NET MAUI and Avalonia components with the ShellUI design system. - [Installation](https://native.shellui.dev/docs/installation.md): Install the CLI, initialise a MAUI or Avalonia project, and add your first component. Install: `shellui-native add button input card` - [Theming](https://native.shellui.dev/docs/theming.md): Theme tokens, light and dark mode, and your own colours. - [CLI](https://native.shellui.dev/docs/cli.md): Every shellui-native command and option. - [AI Agents](https://native.shellui.dev/docs/ai-agents.md): Point Claude Code, Cursor, Copilot and other coding agents at these docs, so they use ShellUI Native's components instead of writing their own. ## Components - [Components](https://native.shellui.dev/docs/components.md): Every ShellUI Native component, by category. ## Components / Form - [Button](https://native.shellui.dev/docs/components/form/button.md): Displays a button, with variants, sizes, an optional icon and a loading state. Install: `shellui-native add button` - [Button Group](https://native.shellui.dev/docs/components/form/button-group.md): Buttons joined into one control, with only the outer corners rounded. Install: `shellui-native add button-group` - [Calendar](https://native.shellui.dev/docs/components/form/calendar.md): A month grid for picking a day. Install: `shellui-native add calendar` - [Checkbox](https://native.shellui.dev/docs/components/form/checkbox.md): A checkbox with an optional label and an error state. Install: `shellui-native add checkbox` - [Combobox](https://native.shellui.dev/docs/components/form/combobox.md): A select with a search field to filter its items. Install: `shellui-native add combobox` - [Date Picker](https://native.shellui.dev/docs/components/form/date-picker.md): A date field that opens a calendar under it. Install: `shellui-native add date-picker` - [Date Range Picker](https://native.shellui.dev/docs/components/form/date-range-picker.md): A date field that picks a start and an end date from one calendar. Install: `shellui-native add date-range-picker` - [File Upload](https://native.shellui.dev/docs/components/form/file-upload.md): A drop zone that opens the file picker and lists the files you picked. Install: `shellui-native add file-upload` - [Form](https://native.shellui.dev/docs/components/form/form.md): Fields with a label, a description and an error message, stacked with even spacing. Install: `shellui-native add form` - [Input](https://native.shellui.dev/docs/components/form/input.md): A text field at the 40px form height, with error and password modes. Install: `shellui-native add input` - [Input Group](https://native.shellui.dev/docs/components/form/input-group.md): A text field with an icon, a short text or any view before or after the text. Install: `shellui-native add input-group` - [Input OTP](https://native.shellui.dev/docs/components/form/input-otp.md): A one-time-code field with a slot per character. Install: `shellui-native add input-otp` - [Label](https://native.shellui.dev/docs/components/form/label.md): Text in the ShellUI type scale, with sizes, weights and colour variants. Install: `shellui-native add label` - [Multi Select](https://native.shellui.dev/docs/components/form/multi-select.md): A searchable select for several options, shown as chips. Install: `shellui-native add multi-select` - [Number Input](https://native.shellui.dev/docs/components/form/number-input.md): A number field with decrement and increment buttons. Install: `shellui-native add number-input` - [Radio Group](https://native.shellui.dev/docs/components/form/radio-group.md): A set of options where only one can be checked. Install: `shellui-native add radio-group` - [Select](https://native.shellui.dev/docs/components/form/select.md): Picks one item from a list that floats under its trigger. Install: `shellui-native add select` - [Slider](https://native.shellui.dev/docs/components/form/slider.md): Picks a value in a range by dragging, clicking the track or using the keyboard. Install: `shellui-native add slider` - [Switch](https://native.shellui.dev/docs/components/form/switch.md): An on / off toggle with an optional label. Install: `shellui-native add switch` - [Tag Input](https://native.shellui.dev/docs/components/form/tag-input.md): A text field that turns each entry into a removable tag. Install: `shellui-native add tag-input` - [Textarea](https://native.shellui.dev/docs/components/form/textarea.md): A multi-line text field that grows with its content. Install: `shellui-native add textarea` - [Time Picker](https://native.shellui.dev/docs/components/form/time-picker.md): A time field that opens hour, minute and AM / PM columns. Install: `shellui-native add time-picker` - [Toggle](https://native.shellui.dev/docs/components/form/toggle.md): A two-state button that stays pressed. Install: `shellui-native add toggle` - [Toggle Group](https://native.shellui.dev/docs/components/form/toggle-group.md): A row of toggles where one, or several, can be pressed. Install: `shellui-native add toggle-group` ## Components / Overlay - [Alert Dialog](https://native.shellui.dev/docs/components/overlay/alert-dialog.md) Install: `shellui-native add alert-dialog` - [Context Menu](https://native.shellui.dev/docs/components/overlay/context-menu.md): A menu that opens at the pointer on right-click, or on long-press on touch screens. Install: `shellui-native add context-menu` - [Dialog](https://native.shellui.dev/docs/components/overlay/dialog.md): A modal window over the page, with a backdrop. Install: `shellui-native add dialog` - [Drawer](https://native.shellui.dev/docs/components/overlay/drawer.md): A panel that slides up from the bottom, with a grab handle. Install: `shellui-native add drawer` - [Dropdown](https://native.shellui.dev/docs/components/overlay/dropdown.md): A menu that floats under its trigger. Install: `shellui-native add dropdown` - [Hover Card](https://native.shellui.dev/docs/components/overlay/hover-card.md): Rich content that floats under its trigger while the pointer is over either. Install: `shellui-native add hover-card` - [Popover](https://native.shellui.dev/docs/components/overlay/popover.md): Rich content that floats next to its trigger. Install: `shellui-native add popover` - [Sheet](https://native.shellui.dev/docs/components/overlay/sheet.md): A panel that slides in from an edge of the window. Install: `shellui-native add sheet` - [Tooltip](https://native.shellui.dev/docs/components/overlay/tooltip.md): A short hint shown while the pointer rests on a control. Install: `shellui-native add tooltip` ## Components / Layout - [Accordion](https://native.shellui.dev/docs/components/layout/accordion.md): Stacked sections that expand and collapse, one or several at a time. Install: `shellui-native add accordion` - [Aspect Ratio](https://native.shellui.dev/docs/components/layout/aspect-ratio.md): Keeps its content at a fixed width-to-height ratio. Install: `shellui-native add aspect-ratio` - [Card](https://native.shellui.dev/docs/components/layout/card.md): A bordered container with header, content and footer parts. Install: `shellui-native add card` - [Collapsible](https://native.shellui.dev/docs/components/layout/collapsible.md): Shows and hides a section, animating its height. Install: `shellui-native add collapsible` - [Resizable](https://native.shellui.dev/docs/components/layout/resizable.md): Panels side by side or stacked, with a divider you drag to resize them. Install: `shellui-native add resizable` - [Scroll Area](https://native.shellui.dev/docs/components/layout/scroll-area.md): A scrollable region with the platform's scrollbar. Install: `shellui-native add scroll-area` - [Separator](https://native.shellui.dev/docs/components/layout/separator.md): A thin line that divides content, horizontally or vertically. Install: `shellui-native add separator` - [Wrap Layout](https://native.shellui.dev/docs/components/layout/wrap-layout.md): Lays its children out left to right and wraps them onto new rows. Install: `shellui-native add wrap-layout` ## Components / Navigation - [Bottom Nav](https://native.shellui.dev/docs/components/navigation/bottom-nav.md): A mobile tab bar with icon tabs, short labels, badges and an optional raised action button. Install: `shellui-native add bottom-nav` - [Breadcrumb](https://native.shellui.dev/docs/components/navigation/breadcrumb.md): The path to the current page, with a chevron between items. Install: `shellui-native add breadcrumb` - [Command](https://native.shellui.dev/docs/components/navigation/command.md): A search field over a list of grouped commands, inline or as a command palette. Install: `shellui-native add command` - [Edge Menu](https://native.shellui.dev/docs/components/navigation/edge-menu.md): A handle on a screen edge that slides out a rail of tool tiles. Install: `shellui-native add edge-menu` - [Link Card](https://native.shellui.dev/docs/components/navigation/link-card.md): A clickable card with an icon, title and description. Install: `shellui-native add link-card` - [Menubar](https://native.shellui.dev/docs/components/navigation/menubar.md): A row of menus, like a desktop app's File, Edit and View. Install: `shellui-native add menubar` - [Navbar](https://native.shellui.dev/docs/components/navigation/navbar.md): A top bar with a brand, links and actions; the links collapse into a menu on narrow screens. Install: `shellui-native add navbar` - [Navigation Menu](https://native.shellui.dev/docs/components/navigation/navigation-menu.md): A row of top-level links for an app header, where an item can open a panel of links. Install: `shellui-native add navigation-menu` - [Pagination](https://native.shellui.dev/docs/components/navigation/pagination.md): Previous / next and page numbers, with ellipses for long ranges. Install: `shellui-native add pagination` - [Prev Next Nav](https://native.shellui.dev/docs/components/navigation/prev-next-nav.md): Previous and next page links for the foot of a page. Install: `shellui-native add prev-next-nav` - [Sidebar](https://native.shellui.dev/docs/components/navigation/sidebar.md): An app sidebar with groups of items that collapses to a rail of icons. Install: `shellui-native add sidebar` - [Stepper](https://native.shellui.dev/docs/components/navigation/stepper.md): A step-by-step flow with numbered steps and its own navigation. Install: `shellui-native add stepper` - [Tabs](https://native.shellui.dev/docs/components/navigation/tabs.md): A row of triggers that switches between panels. Install: `shellui-native add tabs` - [Tree View](https://native.shellui.dev/docs/components/navigation/tree-view.md): An expandable tree of rows, with selection. Install: `shellui-native add tree-view` ## Components / Data Display - [Avatar](https://native.shellui.dev/docs/components/data-display/avatar.md): A round image with initials, or a user icon, as the fallback. Install: `shellui-native add avatar` - [Badge](https://native.shellui.dev/docs/components/data-display/badge.md): A small pill for a status, count or tag. Install: `shellui-native add badge` - [Carousel](https://native.shellui.dev/docs/components/data-display/carousel.md): Swipeable slides with arrows, dots, looping and auto-play. Install: `shellui-native add carousel` - [Chat](https://native.shellui.dev/docs/components/data-display/chat.md): A conversation panel with message bubbles, a typing indicator and a message box. Install: `shellui-native add chat` - [Data Table](https://native.shellui.dev/docs/components/data-display/data-table.md): A table filled from a list, with a filter, sortable columns, row selection and pages. Install: `shellui-native add data-table` - [Empty State](https://native.shellui.dev/docs/components/data-display/empty-state.md): A placeholder for an empty list or screen, with an icon, text and actions. Install: `shellui-native add empty-state` - [Image Viewer](https://native.shellui.dev/docs/components/data-display/image-viewer.md): A thumbnail that opens the image over the page, with zoom controls. Install: `shellui-native add image-viewer` - [Kbd](https://native.shellui.dev/docs/components/data-display/kbd.md): A keyboard key or shortcut hint. Install: `shellui-native add kbd` - [Progress](https://native.shellui.dev/docs/components/data-display/progress.md): A bar showing how far along a task is. Install: `shellui-native add progress` - [Stat Card](https://native.shellui.dev/docs/components/data-display/stat-card.md): A dashboard metric with a trend and a short description. Install: `shellui-native add stat-card` - [Table](https://native.shellui.dev/docs/components/data-display/table.md): A data table with a header, row hover and selection, and an optional caption. Install: `shellui-native add table` - [Timeline](https://native.shellui.dev/docs/components/data-display/timeline.md): A vertical list of events joined by a line. Install: `shellui-native add timeline` ## Components / Charts - [Charts](https://native.shellui.dev/docs/components/charts.md): Bar, line, area, pie, donut, radar and radial charts, drawn by the components in the theme's colours. Install: `shellui-native add bar-chart line-chart area-chart pie-chart radar-chart radial-chart` - [Bar Chart](https://native.shellui.dev/docs/components/charts/bar-chart.md): Bars for each category, side by side, stacked or lying down. Install: `shellui-native add bar-chart` - [Line Chart](https://native.shellui.dev/docs/components/charts/line-chart.md): A line per series across the categories, smooth or straight. Install: `shellui-native add line-chart` - [Area Chart](https://native.shellui.dev/docs/components/charts/area-chart.md): A line per series with the space under it filled, overlapping or stacked. Install: `shellui-native add area-chart` - [Pie Chart](https://native.shellui.dev/docs/components/charts/pie-chart.md): Slices of a whole, as a pie or a donut with a value in the middle. Install: `shellui-native add pie-chart` - [Radar Chart](https://native.shellui.dev/docs/components/charts/radar-chart.md): A spoke per category around a ringed grid, and a filled shape per series. Install: `shellui-native add radar-chart` - [Radial Chart](https://native.shellui.dev/docs/components/charts/radial-chart.md): Concentric rings that fill towards a maximum, for progress towards goals. Install: `shellui-native add radial-chart` ## Components / Feedback - [Alert](https://native.shellui.dev/docs/components/feedback/alert.md): A callout for a message that needs attention, with an icon per variant. Install: `shellui-native add alert` - [Callout](https://native.shellui.dev/docs/components/feedback/callout.md): A highlighted note on a faint tint of its variant colour. Install: `shellui-native add callout` - [Skeleton](https://native.shellui.dev/docs/components/feedback/skeleton.md): A pulsing placeholder shown while content loads. Install: `shellui-native add skeleton` - [Spinner](https://native.shellui.dev/docs/components/feedback/spinner.md): A rotating loading indicator. Install: `shellui-native add spinner` - [Toast](https://native.shellui.dev/docs/components/feedback/toast.md): Sonner-style notifications that stack in a corner and dismiss themselves. Install: `shellui-native add toast` ## Components / Utility - [Copy Button](https://native.shellui.dev/docs/components/utility/copy-button.md): Copies text to the clipboard and confirms with a check mark. Install: `shellui-native add copy-button` - [Icon](https://native.shellui.dev/docs/components/utility/icon.md): Lucide stroke icons drawn as native shapes, tinted by theme tokens. Install: `shellui-native add icon` - [Theme Toggle](https://native.shellui.dev/docs/components/utility/theme-toggle.md): A button that switches between light and dark mode. Install: `shellui-native add theme-toggle` ## Pages - [Blocks](https://native.shellui.dev/docs/blocks.md): Ready-made screens built from the components, numbered like ShellUI's dashboard-01. Install: `shellui-native add bottom-nav-01` ## Resources - [Release notes](https://native.shellui.dev/docs/release-notes.md): What's in each ShellUI Native release, and what's coming next.