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

feat(component): implement FeatureTag component #1567

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

davelinke
Copy link
Contributor

@davelinke davelinke commented Oct 16, 2024

What?

Introducing the FeatureTag component

Why?

The feature tag component is a stylized badge interface element that describes categories of a particular application or feature within the BC properties.

Screenshots/Screen Recordings

Figma

Screenshot 2024-12-13 at 3 09 31 PM

Screenshot 2024-12-27 at 2 40 19 PM

Prototype

Screenshot 2024-12-27 at 2 39 24 PM

Testing/Proof

dev.tsx code
import { FeatureTag, Flex, Grid, FlexItem, FeatureSet, H2 } from '@bigcommerce/big-design';
import { AutoAwesomeIcon } from '@bigcommerce/big-design-icons';
import React, { FunctionComponent } from 'react';

const PageFeatureTag: FunctionComponent = () => {
  return (
    <Flex flexDirection="column" flexGap="1rem" padding="large">
      <H2>Feature set</H2>
      <FlexItem>
        <FeatureSet
          features={[
            { label: 'Feature 1', icon: <AutoAwesomeIcon /> },
            { label: 'Feature 2', icon: <AutoAwesomeIcon /> },
            { label: 'Feature 3', icon: <AutoAwesomeIcon /> },
          ]}
        ></FeatureSet>
      </FlexItem>
      <FlexItem>
        <Grid gridColumns={'100px'}>
        <FeatureSet
          features={[
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
          ]}
        ></FeatureSet>
        </Grid>
      </FlexItem>
      <H2>Feature tag</H2>
      <FeatureTag icon={<AutoAwesomeIcon />} label="Woot" />
      <FeatureTag icon={<AutoAwesomeIcon />} label="BigCommerce" />
      <FeatureTag icon={<AutoAwesomeIcon />} label="BigCommerce" marginBottom={'xLarge'} />
      <Grid gridColumns="100px">
        <FeatureTag
          icon={<AutoAwesomeIcon />}
          label="A really long text"
          title="A really long text"
        />
      </Grid>
    </Flex>
  );
};

export default PageFeatureTag;

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: 9e0d377

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@bigcommerce/big-design Minor
@bigcommerce/docs Minor
@bigcommerce/big-design-patterns Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davelinke davelinke changed the title feat(components): implement FeatureTag component feat(component): implement FeatureTag component Oct 16, 2024
@chanceaclark
Copy link
Contributor

Before you convert this from draft to regular PR make sure to add documentation.

@davelinke davelinke marked this pull request as ready for review December 30, 2024 16:17
@davelinke davelinke requested review from a team as code owners December 30, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants