-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IconAttachment: Add component (#1635)
- Loading branch information
1 parent
504803e
commit 8fdb82b
Showing
7 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'braid-design-system': minor | ||
--- | ||
|
||
--- | ||
new: | ||
- IconAttachment | ||
--- | ||
|
||
**IconAttachment:** Add component | ||
|
||
Add `IconAttachment` to icon suite | ||
|
||
**EXAMPLE USAGE:** | ||
```jsx | ||
<IconAttachment /> | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconAttachment/IconAttachment.docs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import type { ComponentDocs } from 'site/types'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
import source from '@braid-design-system/source.macro'; | ||
import { IconAttachment, Heading, Stack } from '../../'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconAttachment /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconAttachment/IconAttachment.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
import { IconAttachmentSvg } from './IconAttachmentSvg'; | ||
|
||
export type IconAttachmentProps = IconContainerProps; | ||
|
||
export const IconAttachment = (props: IconAttachmentProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconAttachmentSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters