GithubHelp home page GithubHelp logo

kulakowka / react-bulma Goto Github PK

View Code? Open in Web Editor NEW
471.0 9.0 58.0 1.65 MB

React.js components for Modern CSS framework based on Flexbox

Home Page: https://code-typing-tutor.com

License: MIT License

HTML 0.78% JavaScript 99.22%
react-bulma bulma bulma-css-framework bulma-ui react-components

react-bulma's Introduction

React-Bulma

React.js components for Modern CSS framework based on Flexbox

2017-06-01 2 52 24

2017-06-01 2 52 24

JavaScript Style Guide

Installation

npm install reactbulma

Usage

import React from 'react'
import { Button } from 'reactbulma'

const App => () =>
  <div>
      <Button primary>Primary</Button>
      <Button info>Info</Button>
      <Button success>Success</Button>
      <Button warning>Warning</Button>
      <Button danger>Danger</Button>
  </div>
  

export default App

2017-10-10 22 16 02

react-bulma's People

Contributors

gustavo-depaula avatar julian-b90 avatar kulakowka avatar lciceris avatar m8r1x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-bulma's Issues

Support TypeScript?

Hello.

What about supporting TypeScript? When I try to use, I see this:

 Try `npm install @types/reactbulma` if it exists or add a new declaration (.d.ts) file containing `declare module 'reactbulma';`

And, of cause, npm install @types/reactbulma do nothing.
Would be great to start supporting TS at middle of 2018 for your awesome package..

Footer

Hi - any reason the Layout Footer component is missing?

No license file

Currently there is no license file in the repo, meaning that the work is by default under exclusive copyright. [source]

You can use the GitHub created choosealicense.com to help you pick an appropriate license.

Otherwise, if you purposefully left out a license, please add a note to the README saying so.

Document has typo

Thank you for Good component!
I notice this document has typo so I open this issue.

https://kulakowka.github.io/react-bulma/#subtitle

Component of "SubTitle" has been exported as "SubTitle". However, the document is written as "Subtitle" as below.

import { Subtitle } from 'reactbulma'

"t" in Title must be in uppercase letters.

Suggested approach for focussing inputs after render

Is there a suggested approach for focussing input fields when a component is rendered? The autoFocus parameter works on a page refresh, but not when replacing the current contents.

The following approach does not work as the ref is associated with the Input class instance as opposed to the rendered input tag, and the focus() call is not forwarded:

componentDidMount() {
  this.inputField.focus();
}

render() {
  return (
     <div>
        <Input ref={ (input) => { this.inputField = input } } name="foo" /> 
     </div>
  )
}

I'm quite new to React, so maybe I'm missing something.

Thanks.

Ratio modifiers support for images

I did a github search in the repo for sizes such as 4by5, 3by4 and 2by3 where the width > length but couldn't find anything in the code base. However these sizes are supported by bulma css out of the box. How would one go about using these sizes?

SASS variable overrides

First off, thanks for creating this project! I am beginning to use it and it has been very easy to integrate. I was wondering if you've thought about a way to implement overrides for any of the SASS variables in Bulma? What comes to mind is overriding what the primary color is or the default font-family.

I'd be happy to help with this, but I don't know what that implementation would look like.

Why this approach ?

Hi,
First of all, thank you for the great work, it's very nice what you've done !

This is not an issue, but just a general wonder that you may be able to answer:
Why did you choose to implements your components with booleans values, instead of enums.

For example, for the Icon component, you have to manually set the size like so

<Icon small>
  <i class="icon"></i>
</Icon>

Why not do the following:

const size = 'small'

<Icon size={size}>
  <i class="icon"></i>
</Icon>

where the size props is an enumerable value, with the following possibilities: small, medium, large. And, you have the possibility to dynamically inject the size variable from a wrapper component or an external config. Or is there something that I'm missing with React, and you actually can work with a variable ?

I was just wondering why you choose this approach over another one ?
Best regards.

ERROR in ./node_modules/bulma/css/bulma.css

`ERROR in ./node_modules/bulma/css/bulma.css
Module parse failed: Unexpected character '@' (2:0)

You may need an appropriate loader to handle this file type.
| /*! bulma.io v0.6.1 | MIT License | github.com/jgthms/bulma */
| @-webkit-keyframes spinAround {
| from {
| -webkit-transform: rotate(0deg);
@ ./app/main.jsx 24:0-30
@ multi ./app/main webpack-hot-middleware/client`

I don't know if the problem comes from Webpack or Bulma...

SubTitle file name mismatch (v3.0)

This is about Bulma.

Bug

Not browser bug

Overview of the problem

I'm using Bulma version [3.0.0]
Chrome

Description

Failed to compile.
./node_modules/reactbulma/lib/components/index.js
Module not found: ****/packages/client/node_modules/reactbulma/lib/components/Title/Subtitle.js does not match the corresponding path on disk SubTitle.js.

Steps to Reproduce

  1. create-react-app
  2. yarn add reactbulma
  3. import { SubTitle } from 'reactbulma'

Expected behavior

Successful compilation

Actual behavior

Failed to compile.
./node_modules/reactbulma/lib/components/index.js
Module not found: `****/packages/client/node_modules/reactbulma/lib/components/Title/Subtitle.js` does not match the corresponding path on disk `SubTitle.js`.

please note this issue is not occuring in v1.1.1

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.