Skip to main content

bordered

Macro bordered 

Source
macro_rules! bordered {
    ($border_type:ident, $title:expr; $child:expr) => { ... };
    ($title:expr; $child:expr) => { ... };
    ($child:expr) => { ... };
}
Expand description

Create a border with a child

§Examples

use revue::prelude::*;

let view = bordered![
    Text::new("Content")
];

// With title
let view = bordered!["My Panel";
    Text::new("Content")
];

// With type and title
let view = bordered![rounded, "Card Title";
    Text::new("Card content")
];