examples/dom/style_gallery.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<ftxui/dom/elements.hpp>//fortext,operator|,Element,bgcolor,color,blink,bold,dim,inverted,underlined,Fit,hbox
    #include<ftxui/screen/screen.hpp>//forFull,Screen
    #include<memory>//forallocator

    #include"ftxui/dom/node.hpp"//forRender
    #include"ftxui/screen/color.hpp"//forColor,Color::Blue,ftxui

    intmain(){
    usingnamespaceftxui;
    //clang-formatoff
    autodocument=
    hbox({
    text("normal"),text(""),
    text("bold")|bold,text(""),
    text("italic")|italic,text(""),
    text("dim")|dim,text(""),
    text("inverted")|inverted,text(""),
    text("underlined")|underlined,text(""),
    text("underlinedDouble")|underlinedDouble,text(""),
    text("blink")|blink,text(""),
    text("strikethrough")|strikethrough,text(""),
    text("color")|color(Color::Blue),text(""),
    text("bgcolor")|bgcolor(Color::Blue),text(""),
    text("hyperlink")|hyperlink("https://github.com/ArthurSonzogni/FTXUI"),
    });
    //clang-formaton
    autoscreen=Screen::Create(Dimension::Full(),Dimension::Fit(document));
    Render(screen,document);
    screen.Print();

    return0;
    }