Skip to content

use modularized fluent #12199

@zerofront

Description

@zerofront

Environment Information

  • Package version(s): Library: Fluent-ui-react
  • Browser and OS versions: latest

Please provide a reproduction of the bug in a codepen:

I want to use modularized fluent-ui

import { Box, Provider, themes } from '@fluentui/react'

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

export const themes = { fontAwesome, teams, teamsDark, teamsHighContrast };

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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions