Skip to content

v0.5.0

Compare
Choose a tag to compare
@primer-css primer-css released this 29 Sep 18:20
· 476 commits to main since this release
d9f88b1

Minor Changes

  • #81 88e2007 Thanks @rezrah! - Added SubdomainNavBar component.

    Usage example:

    <SubdomainNavBar title="Subdomain">
      <SubdomainNavBar.Link href="#">Collections</SubdomainNavBar.Link>
      <SubdomainNavBar.Link href="#">Topics</SubdomainNavBar.Link>
      <SubdomainNavBar.Link href="#">Articles</SubdomainNavBar.Link>
      <SubdomainNavBar.Link href="#">Events</SubdomainNavBar.Link>
      <SubdomainNavBar.Link href="#">Video</SubdomainNavBar.Link>
      <SubdomainNavBar.Link href="#">Social</SubdomainNavBar.Link>
      <SubdomainNavBar.Search ref={inputRef} onSubmit={handleSubmit} />
      <SubdomainNavBar.PrimaryAction href="#">Primary CTA</SubdomainNavBar.PrimaryAction>
      <SubdomainNavBar.SecondaryAction href="#">Secondary CTA</SubdomainNavBar.SecondaryAction>
    </SubdomainNavBar>

    See the documentation and Storybook for more usage examples.

  • #82 afbab6c Thanks @rezrah! - Added Testimonial component.

    Usage example:

    <Testimonial>
      <Testimonial.Quote>
        GitHub helps us ensure that we have our security controls baked into our pipelines all the way from the first line
        of code we&apos;re writing.
      </Testimonial.Quote>
      <Testimonial.Name position="Staff Security Engineer">David Ross</Testimonial.Name>
      <Testimonial.Avatar
        src="https://avatars.githubusercontent.com/u/92997159?v=4"
        alt="Circular avatar from David Ross's GitHub profile"
      />
    </Testimonial>

    See the documentation or Storybook for more usage examples.

  • #82 afbab6c Thanks @rezrah! - Added Stack component.

    Usage example:

    <Stack direction="horizontal" gap="spacious" padding="spacious">
      <div>
        <img
          src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
          alt="placeholder with gray background and no foreground text"
        />
      </div>
      <div>
        <img
          src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
          alt="placeholder with gray background and no foreground text"
        />
      </div>
      <div>
        <img
          src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
          alt="placeholder with gray background and no foreground text"
        />
      </div>
    </Stack>

    See Storybook for more usage examples.