Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type DocumentBlockTable,
SiteInsightsLinkPosition,
} from '@gitbook/api';
import { Icon } from '@gitbook/icons';
import { Icon, IconStyle } from '@gitbook/icons';
import assertNever from 'assert-never';

import { Checkbox } from '@/components/primitives';
Expand Down Expand Up @@ -98,6 +98,7 @@ export async function RecordColumnValue<Tag extends React.ElementType = 'div'>(
<Icon
key={i}
icon="star"
iconStyle={IconStyle.SharpSolid}
className={tcls('size-[15px]', 'text-primary')}
/>
))}
Expand Down
3 changes: 1 addition & 2 deletions packages/icons/src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export type IconProps = React.SVGProps<SVGSVGElement> & {
icon: IconName;

/**
* Style of the icon to render.
* @default 'solid'
* Style of the icon to render. Defaults to the current icon style from the context.
*/
iconStyle?: IconStyle;

Expand Down