How to use rebass - 10 common examples

To help you get started, we’ve selected a few rebass examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github arso-project / archipel / app / src / components / base.js View on Github external
color: #f66;
    border: 4px solid #900;
  }
  &:focus {
    outline: 0;
    color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
github arso-project / archipel / app / src / components / base.js View on Github external
border: 4px solid #900;
  }
  &:focus {
    outline: 0;
    color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
export const Card = R.Card
github arso-project / archipel / app / src / components / base.js View on Github external
}
  &:focus {
    outline: 0;
    color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
export const Card = R.Card
export const Carousel = R.Carousel
github arso-project / archipel / app / src / components / base.js View on Github external
&:focus {
    outline: 0;
    color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
export const Card = R.Card
export const Carousel = R.Carousel
export const Checkbox = R.Checkbox
github arso-project / archipel / app / src / components / base.js View on Github external
outline: 0;
    color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
export const Card = R.Card
export const Carousel = R.Carousel
export const Checkbox = R.Checkbox
export const Circle = R.Circle
github arso-project / archipel / app / src / components / base.js View on Github external
color: red;
    box-shadow: none;
    border: 4px solid red;
  }
`

// Rebass default re-exports.
// List created with:
// console.log(Object.keys(R).sort().map((k) => `export const ${k} = R.${k}`).join('\n'))

export const Absolute = R.Absolute
export const Arrow = R.Arrow
export const Avatar = R.Avatar
export const BackgroundImage = R.BackgroundImage
export const Badge = R.Badge
export const Banner = R.Banner
export const Base = R.Base
export const BlockLink = R.BlockLink
export const Blockquote = R.Blockquote
export const Border = R.Border
export const Box = R.Box
// export const Button = R.Button
export const ButtonCircle = R.ButtonCircle
export const ButtonOutline = R.ButtonOutline
export const ButtonTransparent = R.ButtonTransparent
export const CSS = R.CSS
export const Caps = R.Caps
export const Card = R.Card
export const Carousel = R.Carousel
export const Checkbox = R.Checkbox
export const Circle = R.Circle
export const Close = R.Close
github rebassjs / rebass / docs / src / Menu.js View on Github external
const A = styled(props =>
  )`
  display: block;
  transition: color .1s ease-out;
  &:hover {
    color: magenta;
  }
`

Box.x = Box.extend`
  @media screen and (max-width: 48em) {
    display: none;
  }
`

const quarter = Math.ceil(components.length / 4)
const comps = {}
comps.a = components.slice(0, quarter)
comps.b = components.slice(quarter, quarter * 2)
comps.c = components.slice(quarter * 2, quarter * 3)
comps.d = components.slice(quarter * 3)

class Menu extends React.Component {
  constructor () {
    super()
    this.state = {