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

Add includeTypes attribute to support component instance #160

Merged
merged 1 commit into from Feb 12, 2024

Conversation

marcomontalbano
Copy link
Owner

@marcomontalbano marcomontalbano commented Feb 10, 2024

Refers to #151

This PR aims to add the ability to include INSTANCE components to the export. By default, all COMPONENTs are exported, but now you can add the property includeTypes to the .figmaexportrc.js file:

...

['components', {
    fileId: 'fzYhvQpqwhZDUImRz431Qo',
    onlyFromPages: ['empty-page', 'icons', 'unit-test'],
    includeTypes: ['COMPONENT', 'INSTANCE'],
    ...
}]

Exporting via CLI is straightforward:

figma-export components fzYhvQpqwhZDUImRz431Qo -O @figma-export/output-components-as-svg -t INSTANCE

@marcomontalbano marcomontalbano self-assigned this Feb 10, 2024
@marcomontalbano marcomontalbano added the PR: New Feature 🚀 Only for pull request. New feature label Feb 10, 2024
@marcomontalbano marcomontalbano added this to the v4.8.0 milestone Feb 10, 2024
@marcomontalbano marcomontalbano linked an issue Feb 10, 2024 that may be closed by this pull request
@marcomontalbano marcomontalbano linked an issue Feb 10, 2024 that may be closed by this pull request
@marcomontalbano marcomontalbano marked this pull request as ready for review February 11, 2024 23:03
@marcomontalbano marcomontalbano merged commit b323aba into main Feb 12, 2024
20 checks passed
@marcomontalbano marcomontalbano deleted the i151-component-instance branch February 12, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature 🚀 Only for pull request. New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Component Instance
1 participant