Git Product home page Git Product logo

medienreaktor.bootstrap's Introduction

Medienreaktor.Bootstrap

Bootstrap Components for Neos CMS (Fusion Components and AFX) โ€“ based on Bootstrap 4.1 (https://getbootstrap.com/)

How to use

Map your content NodeTypes to the presentational components like this:

prototype(Medienreaktor.Site:Content.Button) < prototype(Neos.Neos:ContentComponent) {
    renderer = Medienreaktor.Bootstrap:Component.Button {
        content = Neos.Neos:Editable {
            property = 'text'
            block = false
        }
        href = ${q(node).property('link')}
        [email protected] = Neos.Neos:ConvertUris {
            forceConversion = true
        }
        theme = ${q(node).property('theme')}
    }
}

The resulting HTML is a Bootstrap button component:

<a href="http://" class="btn btn-primary">Your Button Text</a>

See the component fusion files for the complete API of all properties. In case of the button component, there are e.g. outline and size properties you can set either using NodeType properties or in your ContentComponent definition.

Included components

Layout

  • Container
  • Grid (rows and cols)
  • Media

Content

  • Blockquote
  • Code
  • Figure
  • Heading
  • Image
  • Lead
  • List
  • Picture

Component

  • Alert
  • Badge
  • Breadcrumb
  • Button
  • Button group
  • Card
  • List group
  • Nav
  • Navbar
  • Pagination

Utilities

  • Close icon
  • Embed responsive

Work in progress

This is work-in-progress. More components will be added from time to time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.