Skip to content

Commit

Permalink
docs: update doc for the 'ids' option
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Feb 12, 2024
1 parent e5e7889 commit 8da55e2
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .figmaexportrc.example.ts
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ import outputComponentsAsEs6 from '@figma-export/output-components-as-es6';
const styleOptions: StylesCommandOptions = {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
// version: 'xxx123456', // optional - file's version history is only supported on paid Figma plans
// ids: ['138:52'], // optional - Export only specified node IDs (the `onlyFromPages` option is always ignored when set)
// onlyFromPages: ['icons'], // optional - Figma page names or IDs (all pages when not specified)
outputters: [
outputStylesAsSass({
@@ -25,6 +26,7 @@ const styleOptions: StylesCommandOptions = {
const componentOptions: ComponentsCommandOptions = {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
// version: 'xxx123456', // optional - file's version history is only supported on paid Figma plans
// ids: ['54:22'], // optional - Export only specified node IDs (the `onlyFromPages` option is always ignored when set)
onlyFromPages: ['icons'],
transformers: [
transformSvgWithSvgo({
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -176,6 +176,7 @@ module.exports = {
['styles', {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
// version: 'xxx123456', // optional - file's version history is only supported on paid Figma plans
// ids: ['138:52'], // optional - Export only specified node IDs (the `onlyFromPages` option is always ignored when set)
// onlyFromPages: ['icons'], // optional - Figma page names or IDs (all pages when not specified)
outputters: [
require('@figma-export/output-styles-as-sass')({
@@ -187,6 +188,7 @@ module.exports = {
['components', {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
// version: 'xxx123456', // optional - file's version history is only supported on paid Figma plans
// ids: ['54:22'], // optional - Export only specified node IDs (the `onlyFromPages` option is always ignored when set)
onlyFromPages: ['icons'],
// filterComponent: (component) => !/^figma/.test(component.name), // optional
transformers: [

0 comments on commit 8da55e2

Please sign in to comment.