Expand description
§Next RS - Documentation
Welcome to the official documentation for Next RS, a framework written in Rust that simplifies the process of building user interfaces. This framework provides a collection of features, each designed to enhance different aspects of UI development. Below are the features included in the Next RS ecosystem:
§Features
To use a specific feature, enable it using the features
configuration in your Cargo.toml
file:
[dependencies]
next-rs = { version = "0.0.13", features = ["navbar", "sidebar", "css"] }
§Usage
To integrate Next RS into your application, follow these steps:
- Add Next RS and the desired feature crates to your
Cargo.toml
. - Import the necessary components from the Next RS crate into your Rust code.
- Use the imported components within your Next RS components.
For example, to use the Navbar
component, add the following dependency:
[dependencies]
next-rs = { version = "0.0.13", features = ["navbar"] }
Then, in your Rust code:
use next_rs::prelude::*;
use next_rs::Navbar;
#[func]
pub fn MyNavbar() -> Html {
let menus = vec![/* define your menu items here */];
rsx! {
<Navbar menus={menus} />
// Your component logic here...
}
}
For more detailed information and examples, check the examples provided in the library.
§Contribution
If you encounter any issues or have suggestions for improvements, feel free to contribute to the GitHub repository. We appreciate your feedback and involvement in making Next RS better!
§Acknowledgments
Special thanks to the Yew community and contributors for such an amazing framework.
Re-exports§
pub use head::Head;
pub use image::Image;
pub use image::ImageProps;
pub use link::Link;
pub use link::LinkProps;
pub use router::*;
pub use self::prelude::*;
Modules§
- head
- history
- A module that provides universal session history and location information.
- image
- link
- prelude
- The Next RS Prelude
- router
Structs§
- Accordion
- Accordion component.
- Accordion
Button - AccordionButton component.
- Accordion
Item - AccordionItem component.
- Alert
- Alert Component
- Alert
Props - Props for the Alert component.
- I18n
Provider - Yew component for providing the YewI18n context to its children.
- Input
- custom_input_component A custom input component that handles user input and validation.
- Menu
- Menu
Item - Navbar
- Navbar
Props - Properties for the Navbar component
- Renderer
- The Yew Renderer.
- Sidebar
- Sidebar
Props - YewI18n
- The YewI18n struct representing the state and methods for internationalization.
Functions§
- log
- The
console.log()
function. - use_
translation - Note