mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
No description
2fd69c2d98
This commit adds 2 new attributes to the MenuItem component: 'disabled' and 'href'. 'href' is used for specifying links associated with menu items. This is required to make menu links accessible and navigable using keyboard. Currently, 'disabled' is also used only for accessibility purposes: if a MenuItem is not disabled, a tabindex attribute is added to help with keyboard navigation. Additionally, an alt text is added to the logo image. |
||
---|---|---|
.github/workflows | ||
static | ||
yewprint | ||
yewprint-doc | ||
.gitattributes | ||
.gitignore | ||
.rustfmt.toml | ||
build.sh | ||
Cargo.lock | ||
Cargo.toml | ||
CODE_OF_CONDUCT.md | ||
dev.sh | ||
LICENSE | ||
netlify.toml | ||
README.md |
Yewprint
It's Blueprint, but for Yew in Rust.
Warning: This is in early development and it is possible it won't be finished if there is no interest. Don't use this in production! Please help or leave a star to let me know you are interested in this project.
Installation
Use as a library (in your project)
yewprint = { git = "https://github.com/cecton/yewprint.git", branch = "main" }
# right now you need a specific version of Yew to use Yewprint
yew = { git = "https://github.com/yewstack/yew.git", rev = "1507c21b" }
# other yew dependencies need to use this version
# yew-router = { git = "https://github.com/yewstack/yew.git", rev = "1507c21b" }
# yewtil = { git = "https://github.com/yewstack/yew.git", rev = "1507c21b", features = ["pure"] }
You will also need the CSS from blueprint. For that you can either include the CSS file directly or you can look at the script build.sh and see how it is downloaded automatically.
Development
This section will walk you through setting up the environment required to modify
the source of yewprint
.
Prerequisites
Troubleshooting
-
I can't install
cargo-watch
on OSX.This happens on some machines. Try installing the pre-compiled binary instead.
Run the development server
./dev.sh
Roadmap
- Doc web-site designed with the library itself (like https://blueprintjs.com) including link to the Yew library
- FocusStyleManager
- Classes & Typography (and bp3- prefix)
- Breadcrumbs
- Button
- Complete Button API
- AnchorButton
- ButtonGroup
- depends on: Button
- Callout
- Card
- Collapse
- CollapsibleList
- Divider
- depends on: ButtonGroup
- EditableText
- Hotkeys
- Icon
- Menu
- Complete Menu API
- depends on: Popover
- Popover (dropdowns)
- depends on: Overlay
- Navbar
- OverflowList
- PanelStack
- ProgressBar
- ResizeSensor
- Skeleton
- Spinner
- Tabs
- Tag
- depends on: Text
- Text
- Tree
- depends on: Collapse, Icon
- FormGroup
- ControlGroup
- Label
- Checkbox
- RadioGroup
- Sliders
- RangeSlider
- MultiSlider
- Switch
- Complete Switch API
- FileInput
- NumericInput
- InputGroup
- TextArea
- TagInput
- Overlay
- depends on: Portal
- Portal
- Alert
- depends on: Button, Dialog
- Context menu
- depends on: Popover
- Dialog
- depends on: Icon, Overlay, Button
- Drawer
- depends on: Icon, Overlay, Button
- Popover
- depends on: ResizeSensor, Tooltip, Overlay
- Toast
- depends on: Button, ButtonGroup, Icon, AnchorButton
- Tooltip
- depends on: Popover
- DatePicker
- DateRangePicker
- TimePicker
- DateTimePicker
- DateInput
- DateRangeInput
- Select
- Suggest
- MultiSelect
- Omnibar
- QueryList
- Table
- TimezonePicker