-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
use modularized fluent #12199
Comments
Hi @zerofront, there's documentation & example code on the Fluent site about the case when you want to import just a few components & use the teams theme - is this what you're looking for? https://fluentsite.z22.web.core.windows.net/theming-examples |
Hi @aneeshack4 , Thank you for your prompt reply import React from 'react'
import { Button, Icon, Label, Provider, themes } from '@fluentui/react'
export default () => (
<Provider theme={themes.teams}>
<Button content="Button" />
<Button icon="add" iconOnly primary />
<Button icon="email" content="Send email" secondary />
<Icon name="emoji" size="larger" />
<Label content="Label with icon" icon="close" />
</Provider>
) For this example, I just want to import Button、icon、Label Component,but in theme object, therer are many style of other component which is unnecessary。 |
@zerofront I opened #12224 to fix broken exports. Future items:
|
@layershifter - doing some housekeep here. do you think we need to leave this issue open or can be closed? |
Duplicate of #12953 |
Environment Information
Please provide a reproduction of the bug in a codepen:
I want to use modularized fluent-ui
I only need Box Component, but there are many other components In theme Object
like AvatarStyles、DialogStyles tec
Actual behavior:
in fluent-ui source code
Expected behavior:
what can I do if I only need teams themes?
what can I do if I only need some Components?
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No)
Requested priority: High
Products/sites affected: Consumers should not be penalized for code they don't use (through bundle size, perf, etc).
The text was updated successfully, but these errors were encountered: