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
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .figmaexportrc.example.ts
Expand Up @@ -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({
Expand All @@ -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({
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -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')({
Expand All @@ -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: [
Expand Down

0 comments on commit 8da55e2

Please sign in to comment.