Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete shown for addUtilities but not for addComponents #67

Closed
sykire opened this issue Sep 4, 2019 · 1 comment
Closed

Autocomplete shown for addUtilities but not for addComponents #67

sykire opened this issue Sep 4, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@sykire
Copy link

sykire commented Sep 4, 2019

For example:

function stackComponent({ addUtilities, theme }) {
    const spacing = theme('spacing')
    const stack = {};
    ['', '-sm', '-md'].forEach((size, i) => {
        let cls = `.stack${size}`
        stack[cls] = {
            width: '100%',

            '& > *': {
                marginBottom: spacing[(i+1)*2]
            },
            '& > *:last-child': {
                marginBottom: '0'
            }
        }
    })

    addUtilities(stack)
}

Will show "stack", "stack-sm", "stack-md" in the autocompleter when added as plugin using addUtilities function but won't be shown if added with addComponents function. Both ways correctly adds the rules to the resulting css.

@sykire sykire changed the title Intellisense shown for addUtilities but not for addComponents Autocomplete shown for addUtilities but not for addComponents Sep 4, 2019
@bradlc bradlc added the enhancement New feature or request label Mar 18, 2020
@bradlc
Copy link
Contributor

bradlc commented Jun 11, 2020

Added in v0.3.0 🎉

@bradlc bradlc closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants