Code Monkey home page Code Monkey logo

card's Introduction

vue-bulma

A modern UI framework based on Vue and Bulma.

Install

Install with npm:

$ npm i vue-bulma --save

Install with yarn:

$ yarn add vue-bulma

Example

import Vue from 'vue'
import * as components from 'vue-bulma'

// In the global registration
for (const [key, value] of Object.entries(components)) {
  const name = value.name || `vb-${key.toLowerCase()}`
  Vue.component(name, value)
}

Development

We use Lerna to manage multiple packages.

$ npm i lerna --global 
$ yarn bootstrap

Open Examples

$ yarn dev

Format packages

$ yarn run format

Create a package

# vue-bulma-container
$ lerna create vue-bulma-container
$ lerna add vue packages/vue-bulma-container/
$ lerna add bulma packages/vue-bulma-container/
$ cd packages/vue-bulma-container/
$ mkdir src
$ touch src/main.js
$ touch src/style.scss

Add to vue-bulma

$ lerna add vue-bulma-container packages/vue-bulma/

Team

Lead Maintainers

Collaborators

License

Licensed under MIT.

card's People

Contributors

fundon avatar luventa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

card's Issues

Slot content

Hi, is it possible to pass a content value from slot name reference such as footer slot?
ex.

My component

<template>
    <div>
        <base-card :icon="'angle-down'" :title="'Github'">
            //Slot
            <slot name="content" slot="content"></slot>
            // or Html
            <div slot="content">
                <div>
                    <h1>My custom Card Content</h1>
                    <p>Hello world</p>
                </div>
            </div>
            <card-footer-item slot="footer" :href="'https://github.com'">
                <span class="icon is-small">
                    <i aria-hidden="true" class="fa fa-refresh"></i>
                </span>
                &nbsp;&nbsp; Refresh token
            </card-footer-item>
        </base-card>
    </div>
</template>

<script>
    import {BaseCard, CardFooterItem} from 'vue-bulma-card';
    export default {
        components: {
            BaseCard,
            CardFooterItem
        }
    }
</script>

<test>
    <div slot="content">
        <div>
            <h1>My custom Card Content</h1>
            <p>Hello world</p>
        </div>
    </div>
</test>

Text not cropping when is longest as the card size

Hi, i was using the card component on my project and i found this problem when text is longest as the card size, i think text should be cropped but is exceding the card size.

screenshot-area-2017-04-19-165537

I don't know how to lead with this problem. Any workarround or suggestion, i will appretiate.

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.