Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/steadicat/stylistic-elements

A set of React components that make it easy to style elements using props.
https://github.com/steadicat/stylistic-elements

Last synced: 14 days ago
JSON representation

A set of React components that make it easy to style elements using props.

Awesome Lists containing this project

README

        

# Stylistic Elements

A set of React components that make it easy to style elements using props.

For example:

```js
import {Element} from 'stylistic-elements';

// Renders as:

```

## Available elements

- `Element`: the most basic one, simply converts props into inline styles. I recommend using one of the higher-level components below instead.
- `ResetElement`: like `Element` but resets some common user-agent styles to their defaults.
- `Block`: a block-level element. Defaults to `div`.
- `Inline`: an inline element. Defaults to `span`.
- `InlineBlock`: an inline-block element. Defaults to a `div` with `display: inline-block` and `vertical-align: middle`.

## Supported attributes

See [stylistic](https://github.com/steadicat/stylistic) for the list of supported attributes.