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

Can I set a default value for override tags? #377

Open
daifengqi opened this issue Mar 8, 2021 · 2 comments
Open

Can I set a default value for override tags? #377

daifengqi opened this issue Mar 8, 2021 · 2 comments

Comments

@daifengqi
Copy link

daifengqi commented Mar 8, 2021

const options = {
  overrides: {
    h1: {
      component: h1Comp,
    },
    // any other tags use this
   default: {
     component: defaultComp,
   }
  },
};

Appreciate if there is a way to reach that

@quantizor
Copy link
Owner

Not currently, though that's an interesting feature request. What's your planned use case?

@daifengqi
Copy link
Author

daifengqi commented Mar 12, 2021

Not currently, though that's an interesting feature request. What's your planned use case?

sometimes I need to show only certain tags and hid others, so I'm wondering TO add a hidden attribute or display:none in all undesired tags.

For example, show only the title <h1>, <h2>... of articles in catalog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants