@advui/core
v0.12.0
Published
Cross-platform React / React Native components built on Tamagui: buttons, forms, overlays, navigation, feedback, layout and media. Data, chart and editor components ship in @advui/data, @advui/charts and @advui/editor.
Readme
@advui/core
Cross-platform React components for web, iOS and Android, built on Tamagui.
pnpm add @advui/core @advui/theme @advui/icons tamaguiimport { UniversalProvider, Button, toast } from '@advui/core'
import { createUniversalConfig } from '@advui/theme'
const config = createUniversalConfig({ preset: 'indigo' })
export function App() {
return (
<UniversalProvider config={config}>
<Button onPress={() => toast.success('Saved')}>Save</Button>
</UniversalProvider>
)
}On web, install react-native-web, alias react-native to it and transpile the
@advui/* packages (see the Installation guide). Expo needs no extra
setup.
More components ship in packages built on this one, so apps install only what
they use: @advui/data (Table, Data Table, Data Grid, Tree View, Timeline,
Stat, KPI Card), @advui/charts (Bar, Line, Area and Pie Chart) and
@advui/editor (Rich Text Editor). They render inside the same
UniversalProvider.
Exports: Accordion, Alert, AlertDialog, Avatar, Badge, Breadcrumb, Button,
Card, Checkbox, Chip, Container, Dialog, DropdownMenu, Fab, Grid, IconButton,
Input, Label, NavigationBar, Popover, Progress, RadioGroup, Select, Separator,
Sheet, Skeleton, Slider, Snackbar, Spinner, Stack (Box, HStack, VStack, Center, Spacer), Switch, Tabs, Text,
Heading, Kbd, Textarea, Toaster, toast, Toggle, ToggleGroup, Tooltip,
UniversalProvider,
useColorMode, useControllableState, useFieldControl, useParentForm, useReducedMotion, useRipple,
isTextContent, plus re-exports of
createUniversalConfig, Icon, IconDefaults, createIcon, Theme, useTheme and useMedia.
Metadata: @advui/core/meta exports components, the metadata behind
the docs (parts, props, child rules, examples, platform notes) for every core
component, with its ComponentMeta types, for tools such as the AdvUI
Builder. @advui/data/meta, @advui/charts/meta and @advui/editor/meta list
their own components. It is a separate entry point, so apps that don't import
it don't bundle it.
import { components } from '@advui/core/meta'
const button = components.find((meta) => meta.slug === 'button')Docs: component pages, playground and theme customizer in apps/docs. License: MIT.
