@himz-genui/rules
v2.0.0
Published
Shipped UI component contracts for @himz-genui/core (76 platform-neutral contracts: layout, typography, actions, inputs, forms, data display, media, feedback, navigation, overlays, charts).
Maintainers
Readme
@himz-genui/rules
Shipped component contracts for @himz-genui/core. Install both,
then npx fw init copies these files into your project's ui-rules/.
npm i -D @himz-genui/core @himz-genui/rules76 platform-neutral contracts:
| category | components | |---|---| | layout | Stack, Inline, Grid, Container, Spacer, Divider, SectionHeader, HorizontalScroll, PullToRefresh, InfiniteScroll | | typography | Text, Heading, RichText | | action | Button, IconButton, Link, FloatingActionButton | | input | Input, Textarea, Select, SearchBox, Checkbox, RadioGroup, Switch, Slider, NumberInput, DatePicker, FileUpload, Rating, Combobox, ChipGroup, PinInput, DateRangePicker | | form | FormField | | data | Card, Badge, Tag, Stat, List, ListItem, Table, Avatar, Accordion, DescriptionList, Timeline, SwipeActions, AvailabilityCalendar | | media | Image, Icon, Carousel, Video, ImageViewer | | feedback | EmptyState, Skeleton, Alert, Toast, Spinner, ProgressBar, Tooltip | | navigation | Pagination, Tabs, TopBar, BottomNav, SegmentedControl, Sidebar, Breadcrumbs, Stepper, SiteHeader, SiteFooter | | overlay | Modal, Drawer, Menu, ConfirmDialog | | chart | LineChart, BarChart, PieChart |
Each contract declares props, events, states, behaviour rules, accessibility requirements, composition
constraints and optional per-platform hints. See the core README for the contract format and how the
fw CLI uses them.
Props a user reads (label, title, description, placeholder, alt, Text.value…) are marked
t.text(), so multi-language projects can require translated text for them. Since 1.2.0 they also mark whole numbers with .int(), so these contracts
need @himz-genui/core 1.2.0 or later. Upgrading an existing project: copy the files from this package's
src/ into your ui-rules/ again (no props changed, implementations stay verified).
MIT © Himz
